style: gofmt
This commit is contained in:
1 parent
7d1996dd7d
commit
ed77c8e0c1
2 files changed
+4
-4
No files matched your search
@@ -457,9 +457,9 @@ func (a *Agent) doShipIn(ctx context.Context, env proto.TaskEnvelope) proto.Task
|
|||||||
type unpacker struct {
|
type unpacker struct {
|
||||||
dir, conflict string
|
dir, conflict string
|
||||||
names map[string]bool // the top entries the stream may carry
|
names map[string]bool // the top entries the stream may carry
|
||||||
uid, gid int
|
uid, gid int
|
||||||
chown bool
|
chown bool
|
||||||
done, skipped int
|
done, skipped int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *unpacker) unpack(tr *tar.Reader) error {
|
func (u *unpacker) unpack(tr *tar.Reader) error {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ func TestSavedSSHHosts(t *testing.T) {
|
|||||||
if list := s.listSSHHosts(a.ID); len(list) != 1 || list[0].Label != "web" {
|
if list := s.listSSHHosts(a.ID); len(list) != 1 || list[0].Label != "web" {
|
||||||
t.Fatalf("list: %+v", list)
|
t.Fatalf("list: %+v", list)
|
||||||
}
|
}
|
||||||
if len(s.listSSHHosts(a.ID + 1)) != 0 {
|
if len(s.listSSHHosts(a.ID+1)) != 0 {
|
||||||
t.Fatal("another user sees the host")
|
t.Fatal("another user sees the host")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user