@@ -309,7 +309,6 @@ func _() {
309
309
// Add the new method before the implementation. Expect diagnostics.
310
310
t .Run ("method before implementation" , func (t * testing.T ) {
311
311
runner .Run (t , pkg , func (t * testing.T , env * Env ) {
312
- env .Await (InitialWorkspaceLoad )
313
312
env .WriteWorkspaceFile ("b/b.go" , newMethod )
314
313
env .Await (
315
314
OnceMet (
@@ -326,7 +325,6 @@ func _() {
326
325
// Add the new implementation before the new method. Expect no diagnostics.
327
326
t .Run ("implementation before method" , func (t * testing.T ) {
328
327
runner .Run (t , pkg , func (t * testing.T , env * Env ) {
329
- env .Await (InitialWorkspaceLoad )
330
328
env .WriteWorkspaceFile ("a/a.go" , implementation )
331
329
env .Await (
332
330
OnceMet (
@@ -343,7 +341,6 @@ func _() {
343
341
// Add both simultaneously. Expect no diagnostics.
344
342
t .Run ("implementation and method simultaneously" , func (t * testing.T ) {
345
343
runner .Run (t , pkg , func (t * testing.T , env * Env ) {
346
- env .Await (InitialWorkspaceLoad )
347
344
env .WriteWorkspaceFiles (map [string ]string {
348
345
"a/a.go" : implementation ,
349
346
"b/b.go" : newMethod ,
@@ -473,7 +470,6 @@ package a
473
470
func _() {}
474
471
`
475
472
runner .Run (t , pkg , func (t * testing.T , env * Env ) {
476
- env .Await (InitialWorkspaceLoad )
477
473
env .ChangeFilesOnDisk ([]fake.FileEvent {
478
474
{
479
475
Path : "a/a3.go" ,
@@ -560,7 +556,6 @@ func main() {
560
556
}
561
557
`
562
558
withOptions (WithProxyFiles (proxy )).run (t , mod , func (t * testing.T , env * Env ) {
563
- env .Await (InitialWorkspaceLoad )
564
559
env .WriteWorkspaceFiles (map [string ]string {
565
560
"go.mod" : `module mod.com
566
561
@@ -606,12 +601,7 @@ func main() {
606
601
`
607
602
withOptions (InGOPATH ()).run (t , files , func (t * testing.T , env * Env ) {
608
603
env .OpenFile ("foo/main.go" )
609
- env .Await (
610
- OnceMet (
611
- InitialWorkspaceLoad ,
612
- env .DiagnosticAtRegexp ("foo/main.go" , `"blah"` ),
613
- ),
614
- )
604
+ env .Await (env .DiagnosticAtRegexp ("foo/main.go" , `"blah"` ))
615
605
if err := env .Sandbox .RunGoCommand (env .Ctx , "foo" , "mod" , []string {"init" , "mod.com" }); err != nil {
616
606
t .Fatal (err )
617
607
}
@@ -651,7 +641,6 @@ func TestBob(t *testing.T) {
651
641
}
652
642
`
653
643
run (t , files , func (t * testing.T , env * Env ) {
654
- env .Await (InitialWorkspaceLoad )
655
644
// Add a new symbol to the package under test and use it in the test
656
645
// variant. Expect no diagnostics.
657
646
env .WriteWorkspaceFiles (map [string ]string {
0 commit comments