mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 14:41:02 +00:00
test stuff
This commit is contained in:
parent
f946528053
commit
108da005b7
2 changed files with 1 additions and 1 deletions
1
api.go
1
api.go
|
|
@ -1051,7 +1051,6 @@ func (api *API) RefreshUsageCache(refresh time.Duration) {
|
|||
data: make(map[string]NodeUsage),
|
||||
refreshInterval: refresh,
|
||||
}
|
||||
time.Sleep(30 * time.Second)
|
||||
for {
|
||||
fmt.Println(1)
|
||||
api.calculateUsage()
|
||||
|
|
|
|||
|
|
@ -503,6 +503,7 @@ func TestHandler_Endpoints(t *testing.T) {
|
|||
})
|
||||
|
||||
t.Run("UI/usage", func(t *testing.T) {
|
||||
time.Sleep(time.Second * 10)
|
||||
w := httptest.NewRecorder()
|
||||
h.ServeHTTP(w, test.MustNewHTTPRequest("GET", "/ui/usage", nil))
|
||||
if w.Code != gohttp.StatusOK {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue