Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Simon committed Sep 23, 2019
1 parent 24ff9af commit ea5752a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
Servicename: (string) (len=29) "com.docker.swarm.service.name",
Namespace: (string) (len=26) "com.docker.stack.namespace",
ContainerID: (string) (len=18) "mockContainer-0001"
}
},
StaticContent: (string) (len=2) "{}"
},
(main.Message) {
Time: (time.Time) 1974-05-19 01:02:03.000000004 +0000 UTC,
Expand All @@ -28,6 +29,7 @@
Servicename: (string) (len=29) "com.docker.swarm.service.name",
Namespace: (string) (len=26) "com.docker.stack.namespace",
ContainerID: (string) (len=18) "mockContainer-0001"
}
},
StaticContent: (string) (len=2) "{}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Servicename: (string) (len=29) "com.docker.swarm.service.name",
Namespace: (string) (len=26) "com.docker.stack.namespace",
ContainerID: (string) (len=18) "mockContainer-0001"
}
},
StaticContent: (string) (len=2) "{}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Servicename: (string) (len=29) "com.docker.swarm.service.name",
Namespace: (string) (len=26) "com.docker.stack.namespace",
ContainerID: (string) (len=18) "mockContainer-0001"
}
},
StaticContent: (string) (len=2) "{}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Servicename: (string) "",
Namespace: (string) "",
ContainerID: (string) (len=18) "mockContainer-0001"
}
},
StaticContent: (string) (len=2) "{}"
}
}
1 change: 0 additions & 1 deletion tracker/trackStuff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ func TestNewTracker_Logs(t *testing.T) {
want []TrackerLogs
}{
{
name: "Check that will returns the logjson",
resultLogs: `{"mock":true}`,
resultContainer: `{"mock":true}`,
container: types.Container{
Expand Down

0 comments on commit ea5752a

Please sign in to comment.