From 3b9eef0d46d533e42d53f0cdf0e310b8447b3da8 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Sat, 12 May 2018 17:06:22 -0400 Subject: [PATCH] Fix travis failure in c7b6b899f1001acbb2e6 Looks like my gofmt and the one used by travis do not agree on a comment inside an empty struct. Move the comment outside the struct to work around the problem. --- devices/bmxx80/bmp180_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/devices/bmxx80/bmp180_test.go b/devices/bmxx80/bmp180_test.go index d647edf..c56ce48 100644 --- a/devices/bmxx80/bmp180_test.go +++ b/devices/bmxx80/bmp180_test.go @@ -16,9 +16,8 @@ var opts180 = &Opts{Temperature: O1x, Pressure: O1x} func TestNew180_fail_read_chipid(t *testing.T) { bus := i2ctest.Playback{ - Ops: []i2ctest.IO{ - // Chip ID detection read fail. - }, + // Chip ID detection read fail. + Ops: []i2ctest.IO{}, DontPanic: true, } if _, err := NewI2C(&bus, 0x77, opts180); err == nil {