@@ -59,13 +59,13 @@ func TestSkipNonExistingTopic(t *testing.T) {
5959 "test-skip-messages-non-existing-topic-sub" }
6060 _ , execErr , _ , _ := TestSubCommands (SkipCmd , args )
6161 assert .NotNil (t , execErr )
62- assert .Equal (t , "code: 404 reason: Topic not found" , execErr . Error () )
62+ assert .Contains (t , execErr . Error (), "code: 404 reason: Topic" )
6363
6464 args = []string {"skip" , "--all" , "test-skip-messages-non-existing-topic" ,
6565 "test-skip-messages-non-existing-topic-sub" }
6666 _ , execErr , _ , _ = TestSubCommands (SkipCmd , args )
6767 assert .NotNil (t , execErr )
68- assert .Equal (t , "code: 404 reason: Topic not found" , execErr . Error () )
68+ assert .Contains (t , execErr . Error (), "code: 404 reason: Topic" )
6969}
7070
7171func TestSkipNonExistingSub (t * testing.T ) {
@@ -78,12 +78,12 @@ func TestSkipNonExistingSub(t *testing.T) {
7878 "test-skip-messages-non-existing-sub-non-existing" }
7979 _ , execErr , _ , _ = TestSubCommands (SkipCmd , args )
8080 assert .NotNil (t , execErr )
81- assert .Equal (t , "code: 404 reason: Subscription not found" , execErr . Error () )
81+ assert .Contains (t , execErr . Error (), "code: 404 reason: Subscription" )
8282
8383 args = []string {"skip" , "--all" , "test-skip-messages-non-existing-sub-topic" ,
8484 "test-skip-messages-non-existing-sub-non-existing" }
8585 _ , execErr , _ , _ = TestSubCommands (SkipCmd , args )
86- assert .Equal (t , "code: 404 reason: Subscription not found" , execErr . Error () )
86+ assert .Contains (t , execErr . Error (), "code: 404 reason: Subscription" )
8787}
8888
8989func TestSkipNoExistingSubCharactersEscaped (t * testing.T ) {
@@ -92,5 +92,5 @@ func TestSkipNoExistingSubCharactersEscaped(t *testing.T) {
9292 args := []string {"skip" , "--all" , "test-skip-messages-non-existing-sub-topic" ,
9393 "test-skip-messages-non-existing-sub-non-existing/with/special chars" }
9494 _ , execErr , _ , _ := TestSubCommands (SkipCmd , args )
95- assert .Equal (t , "code: 404 reason: Subscription not found" , execErr . Error () )
95+ assert .Contains (t , execErr . Error (), "code: 404 reason: Subscription" )
9696}
0 commit comments