integration: run tests in eachs own process

This commit is contained in:
Antonio Ojea 2022-02-24 15:53:40 +01:00
parent a83bb7746c
commit b0600c630d

View File

@ -202,6 +202,7 @@ func TestStatus(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
_, s, closeFn := framework.RunAnAPIServer(tc.controlPlaneConfig)
defer closeFn()
@ -240,6 +241,7 @@ func TestStatus(t *testing.T) {
if got, expected := decodedData["message"], tc.message; got != expected {
t.Errorf("unexpected message %v, expected %v", got, expected)
}
})
}
}