Skip to content

Commit 901969b

Browse files
Copilotxperiandri
andcommitted
Make introspection update test idempotence explicit
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/4998e0af-9a24-4088-a9a9-3318b08f3de9 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent e02e6a4 commit 901969b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/FSharp.Data.GraphQL.IntegrationTests/IntrospectionUpdateTests.fs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,9 @@ let ``Update integration introspection file when schema changes`` () =
8282
let! sourceStream = httpClient.GetStreamAsync("/")
8383
let! wasUpdated = updateIntrospectionFileAsync CancellationToken.None sourceStream
8484
Assert.True(File.Exists introspectionFilePath)
85-
wasUpdated |> ignore
85+
if wasUpdated then
86+
let! sourceStreamSecondRun = httpClient.GetStreamAsync("/")
87+
use sourceStreamSecondRun = sourceStreamSecondRun
88+
let! wasUpdatedSecondRun = updateIntrospectionFileAsync CancellationToken.None sourceStreamSecondRun
89+
Assert.False wasUpdatedSecondRun
8690
}

0 commit comments

Comments
 (0)