From 34b05e4b7a55d6c3bbc8703911e8ad17c020de5d Mon Sep 17 00:00:00 2001 From: Francisco Souza Date: Fri, 26 Jul 2019 18:54:59 -0400 Subject: [PATCH] db/dbtest: fix tests Related to #240. --- db/dbtest/fake_db_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/dbtest/fake_db_test.go b/db/dbtest/fake_db_test.go index ef625019..274a9f1b 100644 --- a/db/dbtest/fake_db_test.go +++ b/db/dbtest/fake_db_test.go @@ -440,7 +440,7 @@ func TestCreateLocalPresetEmptyName(t *testing.T) { if err == nil { t.Fatal("got unexpected error") } - expectedMsg := "invalid local preset name" + const expectedMsg = "preset name missing" if err.Error() != expectedMsg { t.Errorf("CreateLocalPreset: wrong error message. Want %q. Got %q", expectedMsg, err.Error()) }