Browse Source

Cleanup config_test.go slightly

Ask Bjørn Hansen 12 years ago
parent
commit
41174aaf16
1 changed files with 6 additions and 4 deletions
  1. 6 4
      config_test.go

+ 6 - 4
config_test.go

@@ -21,10 +21,12 @@ func (s *ConfigSuite) TestReadConfigs(c *C) {
 	// Just check that example.com loaded, too.
 	c.Check(s.zones["example.com"].Origin, Equals, "example.com")
 
+	tz := s.zones["test.example.com"]
+
 	// The real tests are in test.example.com so we have a place
 	// to make nutty configuration entries
-	c.Check(s.zones["test.example.com"].Origin, Equals, "test.example.com")
-	c.Check(s.zones["test.example.com"].Options.MaxHosts, Equals, 2)
-	c.Check(s.zones["test.example.com"].Options.Contact, Equals, "support.bitnames.com")
-	c.Check(s.zones["test.example.com"].Labels["weight"].MaxHosts, Equals, 1)
+	c.Check(tz.Origin, Equals, "test.example.com")
+	c.Check(tz.Options.MaxHosts, Equals, 2)
+	c.Check(tz.Options.Contact, Equals, "support.bitnames.com")
+	c.Check(tz.Labels["weight"].MaxHosts, Equals, 1)
 }