We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
error
1 parent 57ea4e1 commit 22e1b18Copy full SHA for 22e1b18
tests/csapi/media_async_uploads_test.go
@@ -42,7 +42,7 @@ func TestAsyncUpload(t *testing.T) {
42
StatusCode: http.StatusGatewayTimeout,
43
JSON: []match.JSON{
44
match.JSONKeyEqual("errcode", "M_NOT_YET_UPLOADED"),
45
- match.JSONKeyEqual("error", "Media has not been uploaded yet"),
+ match.JSONKeyPresent("error"),
46
},
47
})
48
@@ -69,7 +69,7 @@ func TestAsyncUpload(t *testing.T) {
69
StatusCode: http.StatusConflict,
70
71
match.JSONKeyEqual("errcode", "M_CANNOT_OVERWRITE_MEDIA"),
72
- match.JSONKeyEqual("error", "Media ID already has content"),
73
74
75
0 commit comments