diff --git a/langserver/loader_test.go b/langserver/loader_test.go
index <HASH>..<HASH> 100644
--- a/langserver/loader_test.go
+++ b/langserver/loader_test.go
@@ -44,11 +44,9 @@ func TestLoader(t *testing.T) {
 			p, _, err := typecheck(ctx, fset, bctx, bpkg, defaultFindPackageFunc)
 			if err != nil {
 				t.Error(err)
-			}
-			if len(p.Created) == 0 {
+			} else if len(p.Created) == 0 {
 				t.Error("Expected to loader to create a package")
-			}
-			if len(p.Created[0].Files) == 0 {
+			} else if len(p.Created[0].Files) == 0 {
 				t.Error("did not load any files")
 			}
 		})
Improving test stability

if test failed, do no continue (and `don't panic!`)