Browse Source

lib/model: Error check in test (#7508)

Lars Lehtonen 4 years ago
parent
commit
a87c5515bd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/model/model_test.go

+ 3 - 0
lib/model/model_test.go

@@ -4185,6 +4185,9 @@ func TestPendingFolder(t *testing.T) {
 	}
 
 	device3, err := protocol.DeviceIDFromString("AIBAEAQ-CAIBAEC-AQCAIBA-EAQCAIA-BAEAQCA-IBAEAQC-CAIBAEA-QCAIBA7")
+	if err != nil {
+		t.Fatal(err)
+	}
 	setDevice(t, w, config.DeviceConfiguration{DeviceID: device3})
 	if err := m.db.AddOrUpdatePendingFolder(pfolder, pfolder, device3, false); err != nil {
 		t.Fatal(err)