From c54750cfaa2e063cb44d6b26c5f94f42225d17b8 Mon Sep 17 00:00:00 2001 From: Ou Changhua Date: Sat, 31 Mar 2018 13:31:58 +0000 Subject: [PATCH] not compare order if no depends --- config/process_sort_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/process_sort_test.go b/config/process_sort_test.go index 0d1dccd1..b5a30e20 100644 --- a/config/process_sort_test.go +++ b/config/process_sort_test.go @@ -82,8 +82,7 @@ func TestSortProgram(t *testing.T) { fmt.Printf("%s\n", e.GetProgramName()) } - if !isProgramBefore(result, "prog-4", "prog-5") || - !isProgramBefore(result, "prog-5", "prog-3") || + if !isProgramBefore(result, "prog-5", "prog-3") || !isProgramBefore(result, "prog-3", "prog-1") || !isProgramBefore(result, "prog-1", "prog-2") || !isProgramBefore(result, "prog-7", "prog-6") {