diff --git a/pkg/syncmap/syncmap_test.go b/pkg/syncmap/syncmap_test.go index baa2f6ffc..a3327027a 100644 --- a/pkg/syncmap/syncmap_test.go +++ b/pkg/syncmap/syncmap_test.go @@ -91,3 +91,14 @@ func (suite *SyncMapUtilSuite) TestGetAsBool(c *check.C) { result, _ := mmap.GetAsBool("aaa") c.Check(result, check.DeepEquals, true) } + +func (suite *SyncMapUtilSuite) TestGetAsMap(c *check.C) { + expected := NewSyncMap() + expected.Add("expected", true) + + mmap := NewSyncMap() + mmap.Add("aaa", expected) + + result, _ := mmap.GetAsMap("aaa") + c.Check(result, check.DeepEquals, expected) +}