Skip to content

Commit 25ffbb1

Browse files
authored
chore: fix integ tests (#1287)
1 parent 531349f commit 25ffbb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AmplifyPlugins/API/AWSAPICategoryPluginIntegrationTests/GraphQL/GraphQLWithUserPoolIntegrationTests/AuthDirective/GraphQLAuthDirectiveIntegrationTests+Support.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ extension GraphQLAuthDirectiveIntegrationTests {
5454
version: Int) -> Result<MutationSyncResult, GraphQLResponseError<MutationSyncResult>> {
5555
let deleteNoteInvoked = expectation(description: "note was deleted")
5656
var resultOptional: Result<MutationSyncResult, GraphQLResponseError<MutationSyncResult>>?
57-
let request = GraphQLRequest<MutationSyncResult>.deleteMutation(modelName: SocialNote.modelName,
58-
id: id,
59-
version: version)
57+
let request = GraphQLRequest<MutationSyncResult>.deleteMutation(of: SocialNote(id: id, content: ""),
58+
modelSchema: SocialNote.schema,
59+
version: version)
6060
_ = Amplify.API.mutate(request: request, listener: { event in
6161
resultOptional = self.onMutationEvent(event)
6262
deleteNoteInvoked.fulfill()

0 commit comments

Comments
 (0)