Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
tests: ensure that unit's Contents was not modified
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Mar 29, 2016
1 parent a8a7381 commit de4ba7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions job/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ Zzz=something
}
}

jOrig := NewJob("ssh@2.service", *newUnit(t, contents))
// Now ensure that Contents was not modified
if !reflect.DeepEqual(jOrig.Unit.Contents, j.Unit.Contents) {
t.Errorf("Contents data was eventually modified, want:\n%#v\ngot:\n%#v", jOrig.Unit.Contents, j.Unit.Contents)
}
}

func TestParseRequirementsMissingSection(t *testing.T) {
Expand Down

0 comments on commit de4ba7f

Please sign in to comment.