Skip to content

Commit

Permalink
Fix flaky comparison (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan Memisoglu authored and mergify[bot] committed Oct 9, 2019
1 parent a3e790e commit 6911c75
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/blockstorage/awsefs/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ func (s *AWSEFSConversionTestSuite) TestVolumeConversion(c *C) {

for _, tc := range tcs {
vol := volumeFromEFSDescription(tc.input, az)
c.Check(vol, DeepEquals, tc.expected)
c.Check(vol.Az, Equals, tc.expected.Az)
c.Check(vol.ID, Equals, tc.expected.ID)
c.Check(vol.CreationTime, Equals, tc.expected.CreationTime)
c.Check(vol.Size, Equals, tc.expected.Size)
c.Check(vol.Type, Equals, tc.expected.Type)
c.Check(vol.Encrypted, Equals, tc.expected.Encrypted)
c.Check(vol.Tags, HasLen, len(tc.expected.Tags))
}
}

0 comments on commit 6911c75

Please sign in to comment.