Browse code

Update vendored deps that have a proper version number to use said specific versions

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)

Tianon Gravi authored on 2014/05/04 11:34:21
Showing 5 changed files
... ...
@@ -59,5 +59,5 @@ rm -rf src/code.google.com/p/go
59 59
 mkdir -p src/code.google.com/p/go/src/pkg/archive
60 60
 mv tmp-tar src/code.google.com/p/go/src/pkg/archive/tar
61 61
 
62
-clone git github.com/godbus/dbus cb98efbb933d8389ab549a060e880ea3c375d213
63
-clone git github.com/coreos/go-systemd 4c14ed39b8a643ac44b4f95b5a53c00e94261475
62
+clone git github.com/godbus/dbus v1
63
+clone git github.com/coreos/go-systemd v1
... ...
@@ -18,12 +18,13 @@ package dbus
18 18
 
19 19
 import (
20 20
 	"fmt"
21
-	"github.com/guelfey/go.dbus"
22 21
 	"math/rand"
23 22
 	"os"
24 23
 	"path/filepath"
25 24
 	"reflect"
26 25
 	"testing"
26
+
27
+	"github.com/godbus/dbus"
27 28
 )
28 29
 
29 30
 func setupConn(t *testing.T) *Conn {
... ...
@@ -21,6 +21,13 @@ func (s *set) Length() (int) {
21 21
 	return len(s.data)
22 22
 }
23 23
 
24
+func (s *set) Values() (values []string) {
25
+	 for val, _ := range s.data {
26
+		values = append(values, val)
27
+	 }
28
+	 return
29
+}
30
+
24 31
 func newSet() (*set) {
25 32
 	return &set{make(map[string] bool)}
26 33
 }
... ...
@@ -18,9 +18,22 @@ func TestBasicSetActions(t *testing.T) {
18 18
 		t.Fatal("set should contain 'foo'")
19 19
 	}
20 20
 
21
+	v := s.Values()
22
+	if len(v) != 1 {
23
+		t.Fatal("set.Values did not report correct number of values")
24
+	}
25
+	if v[0] != "foo" {
26
+		t.Fatal("set.Values did not report value")
27
+	}
28
+
21 29
 	s.Remove("foo")
22 30
 
23 31
 	if s.Contains("foo") {
24 32
 		t.Fatal("set should not contain 'foo'")
25 33
 	}
34
+
35
+	v = s.Values()
36
+	if len(v) != 0 {
37
+		t.Fatal("set.Values did not report correct number of values")
38
+	}
26 39
 }
27 40
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+[Unit]
1
+Description=enable disable test
2
+
3
+[Service]
4
+ExecStart=/bin/sleep 400