Skip to content

Commit f0f45aa

Browse files
fix: correcting comment assertion
1 parent 4e95dfd commit f0f45aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cns/middlewares/k8sSwiftV2_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestValidateMultitenantIPConfigsRequestFailure(t *testing.T) {
226226
failReq.OrchestratorContext = b
227227
_, respCode, msg = middleware.GetPodInfoForIPConfigsRequest(context.TODO(), failReq)
228228
assert.Equal(t, respCode, types.UnexpectedError)
229-
assert.Assert(t, strings.Contains(msg, "MTPNC in terminating state"), "expected error message to contain '%s', got '%s'", "MTPNC in terminating state", msg)
229+
assert.Assert(t, strings.Contains(msg, NetworkNotReadyErrorMsg), "expected error message to contain '%s', got '%s'", NetworkNotReadyErrorMsg, msg)
230230
}
231231

232232
func TestGetSWIFTv2IPConfigSuccess(t *testing.T) {

0 commit comments

Comments
 (0)