Browse Source

lib/model: Prevent panic on test failure (ref #6618) (#6620)

Simon Frei 5 years ago
parent
commit
57ea8a1bf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/model/model_test.go

+ 1 - 1
lib/model/model_test.go

@@ -138,7 +138,7 @@ func TestRequest(t *testing.T) {
 	// Existing, shared file
 	res, err := m.Request(device1, "default", "foo", 6, 0, nil, 0, false)
 	if err != nil {
-		t.Error(err)
+		t.Fatal(err)
 	}
 	bs := res.Data()
 	if !bytes.Equal(bs, []byte("foobar")) {