diff options
Diffstat (limited to 'integrationtests/dtailhealthcheck_test.go')
| -rw-r--r-- | integrationtests/dtailhealthcheck_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/integrationtests/dtailhealthcheck_test.go b/integrationtests/dtailhealthcheck_test.go index bb6c146..6ad5dc0 100644 --- a/integrationtests/dtailhealthcheck_test.go +++ b/integrationtests/dtailhealthcheck_test.go @@ -12,7 +12,7 @@ func TestDTailHealthCheck(t *testing.T) { expectedStdoutFile := "dtailhealthcheck.expected" t.Log("Serverless check, is supposed to exit with warning state.") - exitCode, err := runCommand(context.TODO(), stdoutFile, "../dtailhealthcheck") + exitCode, err := runCommand(context.TODO(), t, stdoutFile, "../dtailhealthcheck") if exitCode != 1 { t.Error(fmt.Sprintf("Expected exit code '1' but got '%d': %v", exitCode, err)) return @@ -30,7 +30,7 @@ func TestDTailHealthCheck2(t *testing.T) { expectedStdoutFile := "dtailhealthcheck2.expected" t.Log("Negative test, is supposed to exit with a critical state.") - exitCode, err := runCommand(context.TODO(), stdoutFile, + exitCode, err := runCommand(context.TODO(), t, stdoutFile, "../dtailhealthcheck", "--server", "example:1") if exitCode != 2 { @@ -53,7 +53,7 @@ func TestDTailHealthCheck3(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - _, _, _, err := startCommand(ctx, + _, _, _, err := startCommand(ctx, t, "../dserver", "--logger", "stdout", "--logLevel", "trace", @@ -64,7 +64,7 @@ func TestDTailHealthCheck3(t *testing.T) { return } - _, err = runCommandRetry(ctx, 10, stdoutFile, + _, err = runCommandRetry(ctx, t, 10, stdoutFile, "../dtailhealthcheck", "--server", "localhost:4242") if err != nil { t.Error(err) |
