Tests passing when being run offline, still not integrated with the new API endpoints yet

This commit is contained in:
David Dworken
2022-04-28 11:26:55 -07:00
parent 8a018b71b8
commit 46d7e9e013
4 changed files with 22 additions and 4 deletions

View File

@ -101,7 +101,7 @@ func TestESubmitThenQuery(t *testing.T) {
// Bootstrap handler should return 2 entries, one for each device
w = httptest.NewRecorder()
searchReq = httptest.NewRequest(http.MethodGet, "/?user_id="+data.UserId("key")+"&device_id="+devId1, nil)
apiEBootstrapHandler(w, searchReq)
apiBootstrapHandler(w, searchReq)
res = w.Result()
defer res.Body.Close()
respBody, err = ioutil.ReadAll(res.Body)
@ -264,6 +264,10 @@ func TestDumpRequestAndResponse(t *testing.T) {
}
func TestUpdateReleaseVersion(t *testing.T) {
if !shared.IsOnline() {
t.Skip("skipping because we're currently offline")
}
// Set up
defer shared.BackupAndRestore(t)()
InitDB()