Skip to content

Commit 9c88a63

Browse files
committed
updated validator message
1 parent 2dc1acd commit 9c88a63

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mock/mock_engine_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,7 @@ func TestNewMockEngine_BuildResponse_MissingOperation_404(t *testing.T) {
326326
_ = json.Unmarshal(b, &decoded)
327327

328328
assert.Equal(t, "Path / operation not found (404)", decoded["title"])
329-
assert.Equal(t, "Unable to locate the path '/wiretap/giftshop/products' with the method 'PATCH'. "+
330-
"Error: PATCH Path '/wiretap/giftshop/products' not found, Reason: The PATCH request contains a path of "+
331-
"'/wiretap/giftshop/products' however that path, or the PATCH method for that path does not exist in the "+
332-
"specification", decoded["detail"])
329+
assert.Equal(t, "Unable to locate the path '/wiretap/giftshop/products' with the method 'PATCH'. Error: PATCH Path '/wiretap/giftshop/products' not found, Reason: The PATCH method for that path does not exist in the specification", decoded["detail"])
333330
}
334331

335332
func TestNewMockEngine_BuildResponse_CreateProduct_NoSecurity_Invalid(t *testing.T) {

0 commit comments

Comments
 (0)