Skip to content

Commit 22e1b18

Browse files
committed
Don't assert human error message
1 parent 57ea4e1 commit 22e1b18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/csapi/media_async_uploads_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestAsyncUpload(t *testing.T) {
4242
StatusCode: http.StatusGatewayTimeout,
4343
JSON: []match.JSON{
4444
match.JSONKeyEqual("errcode", "M_NOT_YET_UPLOADED"),
45-
match.JSONKeyEqual("error", "Media has not been uploaded yet"),
45+
match.JSONKeyPresent("error"),
4646
},
4747
})
4848
})
@@ -69,7 +69,7 @@ func TestAsyncUpload(t *testing.T) {
6969
StatusCode: http.StatusConflict,
7070
JSON: []match.JSON{
7171
match.JSONKeyEqual("errcode", "M_CANNOT_OVERWRITE_MEDIA"),
72-
match.JSONKeyEqual("error", "Media ID already has content"),
72+
match.JSONKeyPresent("error"),
7373
},
7474
})
7575
})

0 commit comments

Comments
 (0)