Skip to content

Commit

Permalink
fix gitlab-ci / docker
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed May 19, 2019
1 parent e218265 commit f7d80d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func TestLoadAndSave(t *testing.T) {
// not autoload without StatePath
NewNodes(config)

// Test unmarshalable /dev/null - autolead with StatePath
config.StatePath = "/dev/null"
// Test unmarshalable /proc/a - autolead with StatePath
config.StatePath = "/proc/a"
nodes := NewNodes(config)
// Test unopen able
config.StatePath = "/root/nodes.json"
Expand All @@ -71,8 +71,8 @@ func TestLoadAndSave(t *testing.T) {
os.Remove(tmpfile.Name())

assert.Panics(func() {
SaveJSON(nodes, "/dev/null")
// "open /dev/null.tmp: permission denied",
SaveJSON(nodes, "/proc/a")
// "open /proc/a.tmp: permission denied",
})

tmpfile, _ = ioutil.TempFile("/tmp", "nodes")
Expand Down

0 comments on commit f7d80d6

Please sign in to comment.