@@ -208,16 +208,14 @@ require golang.org/x/hello v1.2.3
208
208
env .OpenFile ("b/go.mod" )
209
209
env .ExecuteCodeLensCommand ("a/go.mod" , command .CheckUpgrades , nil )
210
210
d := & protocol.PublishDiagnosticsParams {}
211
- env .Await (
212
- OnceMet (
213
- env .DiagnosticAtRegexpWithMessage ("a/go.mod" , `require` , "can be upgraded" ),
214
- ReadDiagnostics ("a/go.mod" , d ),
215
- // We do not want there to be a diagnostic for b/go.mod,
216
- // but there may be some subtlety in timing here, where this
217
- // should always succeed, but may not actually test the correct
218
- // behavior.
219
- NoMatchingDiagnostics (env .AtRegexp ("b/go.mod" , `require` )),
220
- ),
211
+ env .OnceMet (
212
+ env .DiagnosticAtRegexpWithMessage ("a/go.mod" , `require` , "can be upgraded" ),
213
+ ReadDiagnostics ("a/go.mod" , d ),
214
+ // We do not want there to be a diagnostic for b/go.mod,
215
+ // but there may be some subtlety in timing here, where this
216
+ // should always succeed, but may not actually test the correct
217
+ // behavior.
218
+ NoMatchingDiagnostics (env .AtRegexp ("b/go.mod" , `require` )),
221
219
)
222
220
// Check for upgrades in b/go.mod and then clear them.
223
221
env .ExecuteCodeLensCommand ("b/go.mod" , command .CheckUpgrades , nil )
0 commit comments