testing.T.Run was introduced in Go 1.7, not Go 1.8

Make tests that were locked on 1.8 to run on Go 1.7.

Fix ina219 tests to only compile on Go 1.7 since it uses testing.t.Run().
pull/1/head
Marc-Antoine Ruel 8 years ago
parent 7bc669b0cf
commit fb97d9d25d

@ -2,7 +2,7 @@
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// +build go1.8
// +build go1.7
package cap1xxx

@ -2,6 +2,8 @@
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// +build go1.7
package ina219
import (

@ -2,7 +2,7 @@
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// +build go1.8
// +build go1.7
package nrzled
Loading…
Cancel
Save