diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-12-19 16:46:34 -0500 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-12-19 16:46:34 -0500 |
commit | 7db28dd705dd5463b5e2e9cf6f5fc87db25533ad (patch) | |
tree | fc6cf394405a36f36d0b50051b738f25a8605c54 /svc/cache_test.go | |
parent | f60789a3bd40b61fb026af2f660bea3b2cc2ce46 (diff) | |
download | getwtxt-7db28dd705dd5463b5e2e9cf6f5fc87db25533ad.tar.gz |
decoupled tests from personal twtxt.txt
Rather than use my personal twtxt.txt file, I'm using the mocked twtxt.txt file I just added to the repository for test data. It is being fetched via https from github to avoid having to get rid of the url validity check in the associated registry library.
Diffstat (limited to 'svc/cache_test.go')
-rw-r--r-- | svc/cache_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svc/cache_test.go b/svc/cache_test.go index d54d4c3..96c2638 100644 --- a/svc/cache_test.go +++ b/svc/cache_test.go @@ -49,7 +49,7 @@ func Test_cacheUpdate(t *testing.T) { killStatuses() cacheUpdate() - urls := "https://gbmor.dev/twtxt.txt" + urls := "https://github.com/getwtxt/getwtxt/raw/master/testdata/twtxt.txt" newStatus := twtxtCache.Users[urls].Status t.Run("Checking for any data", func(t *testing.T) { |