Skip to content

Commit

Permalink
[flow][test] Make autostop test more reliable
Browse files Browse the repository at this point in the history
Summary:
Example of failure: https://github.com/facebook/flow/actions/runs/12471279769/job/34808008899
We should filter out diagonostics messages since it's irrelevant for this test: we only care that the server has started and can respond to requests. The timing of status message vs diagnostics message is not important.

Changelog: [internal]

Reviewed By: panagosg7

Differential Revision: D67610969

fbshipit-source-id: 9b219b6e91fffbf2682f922eb1722add1b0741b6
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Dec 24, 2024
1 parent ef92045 commit 1447ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newtests/autostop/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = (suite(
{method: 'telemetry/connectionStatus', params: {isConnected: true}},
['window/showStatus', 'Flow is ready.'],
],
[],
['textDocument/publishDiagnostics', '$/cancelRequest'],
),
]),
],
Expand Down

0 comments on commit 1447ace

Please sign in to comment.