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

This commit is contained in:
Simon Frei 2020-05-08 17:56:49 +02:00 committed by GitHub
parent f72832d591
commit 57ea8a1bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {