Check returned error in Scratch-test
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Mar 2016 22:40:39 +0000 (23:40 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Mar 2016 22:40:39 +0000 (23:40 +0100)
hugolib/scratch_test.go

index 3632ec16cae52d5a8af43798a24d74df36a472e4..f81564c88d13e4eba00927763e588c8bbd694595 100644 (file)
@@ -66,6 +66,8 @@ func TestScratchAddSlice(t *testing.T) {
 
        _, err = scratch.Add("intSlice", []int{4, 5})
 
+       assert.Nil(t, err)
+
        sl = scratch.Get("intSlice")
        expected = []int{1, 2, 3, 4, 5}