From 907e475a45fb2df85a0cd85d1d7b80fcf46280f7 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Sat, 7 Nov 2020 00:54:04 +0100 Subject: [PATCH] [v3][process] Fix Test_Process_Status test with new Status() API --- v3/process/process_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v3/process/process_test.go b/v3/process/process_test.go index a34f0f0..a894164 100644 --- a/v3/process/process_test.go +++ b/v3/process/process_test.go @@ -198,8 +198,8 @@ func Test_Process_Status(t *testing.T) { if len(v) == 0 { t.Errorf("could not get state") } - if v[0] != "R" && v[0] != "S" { - t.Errorf("get wrong state, %v", v) + if v[0] != Running && v[0] != Sleep { + t.Errorf("got wrong state, %v", v) } }