diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-09 23:14:56 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-09 23:26:30 -0400 |
commit | 45d67236e16365e0c6ea90e9b8baa3008d50996d (patch) | |
tree | 4639f792e06633280dfe250fd2eba796b8cb6089 /svc/init_test.go | |
parent | 3b6d1cc9f8acf82be9f168657b6ecab1eb34721e (diff) | |
download | getwtxt-45d67236e16365e0c6ea90e9b8baa3008d50996d.tar.gz |
setting version via build flags
Diffstat (limited to 'svc/init_test.go')
-rw-r--r-- | svc/init_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svc/init_test.go b/svc/init_test.go index 385db0e..b2fcd9a 100644 --- a/svc/init_test.go +++ b/svc/init_test.go @@ -82,9 +82,9 @@ func testConfig() { confObj.LastCache = time.Now() confObj.LastPush = time.Now() - confObj.Version = getwtxt + confObj.Version = Vers - confObj.Instance.Vers = getwtxt + confObj.Instance.Vers = Vers confObj.Instance.Name = viper.GetString("Instance.SiteName") confObj.Instance.URL = viper.GetString("Instance.URL") confObj.Instance.Owner = viper.GetString("Instance.OwnerName") @@ -93,7 +93,6 @@ func testConfig() { } func mockRegistry() { - statuses, _, _ := registry.GetTwtxt("https://gbmor.dev/twtxt.txt") parsed, _ := registry.ParseUserTwtxt(statuses, "gbmor", "https://gbmor.dev/twtxt.txt") _ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "1", net.ParseIP("127.0.0.1"), parsed) |