diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 21:32:24 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 21:32:24 +0300 |
commit | 3732867a8f79171e2d5aefb8ceaa4b887fbbaf72 (patch) | |
tree | bae3b2360af5ccc4276765739483c01e7cdae1ab /domains_test.go | |
parent | e21aea0827eb6e9635385f9f5d3ad5ad1c952cde (diff) |
Fix tests
Diffstat (limited to 'domains_test.go')
-rw-r--r-- | domains_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/domains_test.go b/domains_test.go index 0406617f..cf439c7e 100644 --- a/domains_test.go +++ b/domains_test.go @@ -10,9 +10,11 @@ import ( "time" ) -const updateFile = "shared/pages/.update" +const updateFile = ".update" func TestReadProjects(t *testing.T) { + setUpTests() + *pagesDomain = "test.io" d := make(domains) @@ -47,10 +49,12 @@ func writeRandomTimestamp() { } func TestWatchDomains(t *testing.T) { + setUpTests() + update := make(chan domains) go watchDomains(func(domains domains) { update <- domains - }, time.Microsecond) + }, time.Microsecond * 50) defer os.Remove(updateFile) |