@@ -72,21 +72,21 @@ func TestOffloadDeletionLagOnNonExistingNs(t *testing.T) {
7272 args := []string {"set-offload-deletion-lag" , "--lag" , "10m" , ns }
7373 _ , execErr , _ , _ := TestNamespaceCommands (SetOffloadDeletionLagCmd , args )
7474 assert .NotNil (t , execErr )
75- assert . Equal (t , "code: 404 reason: Namespace does not exist" , execErr . Error () )
75+ assertNamespaceNotExistError (t , execErr )
7676}
7777
7878func TestGetOfloadThresholdOnNonExistingNs (t * testing.T ) {
7979 ns := "public/non-existing-namespace"
8080 args := []string {"get-offload-deletion-lag" , ns }
8181 _ , execErr , _ , _ := TestNamespaceCommands (GetOffloadDeletionLagCmd , args )
8282 assert .NotNil (t , execErr )
83- assert . Equal (t , "code: 404 reason: Namespace does not exist" , execErr . Error () )
83+ assertNamespaceNotExistError (t , execErr )
8484}
8585
8686func TestClearOffloadDeletionLagOnNonExistingNs (t * testing.T ) {
8787 ns := "public/non-existing-namespace"
8888 args := []string {"clear-offload-deletion-lag" , ns }
8989 _ , execErr , _ , _ := TestNamespaceCommands (ClearOffloadDeletionLagCmd , args )
9090 assert .NotNil (t , execErr )
91- assert . Equal (t , "code: 404 reason: Namespace does not exist" , execErr . Error () )
91+ assertNamespaceNotExistError (t , execErr )
9292}
0 commit comments