From b026250cabcbde69ef68fa9547c0f3447d2173f0 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 30 Jan 2025 15:27:23 -0500 Subject: [PATCH] mock: Fix tests --- mock/config_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mock/config_test.go b/mock/config_test.go index 02eaa6f..102992b 100644 --- a/mock/config_test.go +++ b/mock/config_test.go @@ -8,16 +8,16 @@ func TestConfig(test *testing.T) { "multiple": []string { "item0", "item1" }, "empty": []string { }, } - if correct, got := config.Get("single"), "aslkdjasd"; correct != got { + if correct, got := "aslkdjasd", config.Get("single"); correct != got { test.Fatal("not equal:", got) } - if correct, got := config.Get("multiple"), "item0"; correct != got { + if correct, got := "item0", config.Get("multiple"); correct != got { test.Fatal("not equal:", got) } - if correct, got := config.Get("empty"), ""; correct != got { + if correct, got := "", config.Get("empty"); correct != got { test.Fatal("not equal:", got) } - if correct, got := config.Get("non-existent"), ""; correct != got { + if correct, got := "", config.Get("non-existent"); correct != got { test.Fatal("not equal:", got) } for index, value := range config.GetAll("single") {