Skip to content

Commit f977c9e

Browse files
committed
gofmt files
Had this stashed in my local git; result of gofmt -s -w Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 345cc64 commit f977c9e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

agent/worker_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ func TestWorkerAssign(t *testing.T) {
4444

4545
pg := &testutils.FakePluginGetter{
4646
Plugins: map[string]*testutils.FakeCompatPlugin{
47-
"plugin-1": &testutils.FakeCompatPlugin{
47+
"plugin-1": {
4848
PluginName: "plugin-1",
4949
PluginAddr: &net.UnixAddr{},
5050
},
51-
"plugin-2": &testutils.FakeCompatPlugin{
51+
"plugin-2": {
5252
PluginName: "plugin-2",
5353
PluginAddr: &net.UnixAddr{},
5454
},
@@ -270,7 +270,7 @@ func TestWorkerWait(t *testing.T) {
270270

271271
pg := &testutils.FakePluginGetter{
272272
Plugins: map[string]*testutils.FakeCompatPlugin{
273-
"plugin-1": &testutils.FakeCompatPlugin{
273+
"plugin-1": {
274274
PluginName: "plugin-1",
275275
PluginAddr: &net.UnixAddr{},
276276
},
@@ -418,11 +418,11 @@ func TestWorkerUpdate(t *testing.T) {
418418

419419
pg := &testutils.FakePluginGetter{
420420
Plugins: map[string]*testutils.FakeCompatPlugin{
421-
"plugin-1": &testutils.FakeCompatPlugin{
421+
"plugin-1": {
422422
PluginName: "plugin-1",
423423
PluginAddr: &net.UnixAddr{},
424424
},
425-
"plugin-2": &testutils.FakeCompatPlugin{
425+
"plugin-2": {
426426
PluginName: "plugin-2",
427427
PluginAddr: &net.UnixAddr{},
428428
},

manager/scheduler/volumes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var _ = Describe("volumeSet", func() {
9797
// if the volume is the last one in the group, it should be removed.
9898
Expect(vs.byGroup).To(SatisfyAll(
9999
HaveLen(1),
100-
HaveKeyWithValue("group", map[string]struct{}{v2.ID: struct{}{}}),
100+
HaveKeyWithValue("group", map[string]struct{}{v2.ID: {}}),
101101
))
102102
})
103103

0 commit comments

Comments
 (0)