Updating testing code

This commit is contained in:
Farhan Khan 2021-09-29 03:39:35 +00:00
parent a9bf0f8017
commit 738ba6c3b6

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"gitlab.com/khanzf/fedilogue/shared"
"strconv" "strconv"
"testing" "testing"
"time" "time"
@ -29,8 +30,8 @@ func TestStatusReport_full_content(t *testing.T) {
endpoint = "endpoint" + strconv.Itoa(identifier) + ".test.com" endpoint = "endpoint" + strconv.Itoa(identifier) + ".test.com"
a.client = BuildClient(endpoint) a.client = BuildClient(endpoint)
a.Status = test_status a.Status = test_status
a.recentactivities = newUniqueFifo(10) a.recentactivities = shared.NewUniqueFifo(10)
a.recentactors = newUniqueFifo(10) a.recentactors = shared.NewUniqueFifo(10)
a.Software = test_instance_type a.Software = test_instance_type
a.Version = "0." + strconv.Itoa(identifier) a.Version = "0." + strconv.Itoa(identifier)
a.LastRun = time.Now().Format(time.RFC3339) a.LastRun = time.Now().Format(time.RFC3339)