From d75fe9cc40e47acc9e715d7fc7c450062f7fb5db Mon Sep 17 00:00:00 2001 From: Andrew Dawson Date: Wed, 4 Nov 2020 20:50:06 -0800 Subject: [PATCH] Fix unit tests --- service/history/decisionChecker_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/history/decisionChecker_test.go b/service/history/decisionChecker_test.go index ca1ff55966e..fd6b9c3dc80 100644 --- a/service/history/decisionChecker_test.go +++ b/service/history/decisionChecker_test.go @@ -519,10 +519,10 @@ func (s *decisionAttrValidatorSuite) TestValidateTaskListName() { {"", taskList("/__cadence_sys"), taskList("/__cadence_sys"), false}, {"", nil, &workflow.TaskList{}, true}, {"", taskList(""), taskList(""), true}, - {"", taskList(reservedTaskListPrefix), taskList(reservedTaskListPrefix), true}, - {"tl-1", taskList(reservedTaskListPrefix), taskList(reservedTaskListPrefix), true}, - {"", taskList(reservedTaskListPrefix + "tl-1"), taskList(reservedTaskListPrefix + "tl-1"), true}, - {"tl-1", taskList(reservedTaskListPrefix + "tl-1"), taskList(reservedTaskListPrefix + "tl-1"), true}, + {"", taskList(common.ReservedTaskListPrefix), taskList(common.ReservedTaskListPrefix), true}, + {"tl-1", taskList(common.ReservedTaskListPrefix), taskList(common.ReservedTaskListPrefix), true}, + {"", taskList(common.ReservedTaskListPrefix + "tl-1"), taskList(common.ReservedTaskListPrefix + "tl-1"), true}, + {"tl-1", taskList(common.ReservedTaskListPrefix + "tl-1"), taskList(common.ReservedTaskListPrefix + "tl-1"), true}, } for _, tc := range testCases {