Commit bb763df8 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #28530 from lixiaobing10051267/msterwascreated

Automatic merge from submit-queue "was not created" should be "was created" In file pkg\client\restclient/request_test.go, line #1089, "t.Errorf("expected object was not created")" , here "was not created" should be "was created" because the if condition is "if wasCreated".
parents bfa5d302 10a26ab1
...@@ -1086,7 +1086,7 @@ func TestDoRequestNewWayFile(t *testing.T) { ...@@ -1086,7 +1086,7 @@ func TestDoRequestNewWayFile(t *testing.T) {
t.Errorf("Expected: %#v, got %#v", expectedObj, obj) t.Errorf("Expected: %#v, got %#v", expectedObj, obj)
} }
if wasCreated { if wasCreated {
t.Errorf("expected object was not created") t.Errorf("expected object was created")
} }
tmpStr := string(reqBodyExpected) tmpStr := string(reqBodyExpected)
requestURL := testapi.Default.ResourcePathWithPrefix("foo/bar/baz", "", "", "") requestURL := testapi.Default.ResourcePathWithPrefix("foo/bar/baz", "", "", "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment