mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	fix: remove unnecessary conversion (#6258)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
		| @@ -26,7 +26,7 @@ func TestMinimalTTL(t *testing.T) { | ||||
| 		t.Fatalf("Expected type to be response.NoData, got %s", mt) | ||||
| 	} | ||||
| 	dur := MinimalTTL(m, mt) // minTTL on msg is 3600 (neg. ttl on SOA) | ||||
| 	if dur != time.Duration(1800*time.Second) { | ||||
| 	if dur != 1800*time.Second { | ||||
| 		t.Fatalf("Expected minttl duration to be %d, got %d", 1800, dur) | ||||
| 	} | ||||
|  | ||||
| @@ -36,7 +36,7 @@ func TestMinimalTTL(t *testing.T) { | ||||
| 		t.Fatalf("Expected type to be response.NameError, got %s", mt) | ||||
| 	} | ||||
| 	dur = MinimalTTL(m, mt) // minTTL on msg is 3600 (neg. ttl on SOA) | ||||
| 	if dur != time.Duration(1800*time.Second) { | ||||
| 	if dur != 1800*time.Second { | ||||
| 		t.Fatalf("Expected minttl duration to be %d, got %d", 1800, dur) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user