From 13815fb733cc70de7a158635357b32cfcf309c4e Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Sun, 13 Sep 2015 16:40:31 -0700 Subject: [PATCH] mock: use network resources --- nomad/mock/mock.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nomad/mock/mock.go b/nomad/mock/mock.go index 310a22812..a6eb5606c 100644 --- a/nomad/mock/mock.go +++ b/nomad/mock/mock.go @@ -82,6 +82,12 @@ func Job() *structs.Job { Resources: &structs.Resources{ CPU: 0.5, MemoryMB: 256, + Networks: []*structs.NetworkResource{ + &structs.NetworkResource{ + MBits: 50, + DynamicPorts: 1, + }, + }, }, }, },