Skip to content
Snippets Groups Projects
Commit 4d21d48d authored by Jake Taylor's avatar Jake Taylor
Browse files

no

parent a8ab35cf
No related branches found
No related tags found
2 merge requests!60Revert "Fail a test to be sure it works",!23god grant us all merciful deaths
......@@ -10,15 +10,13 @@
package indexedDb
import (
"github.com/hack-pad/go-indexeddb/idb"
"github.com/pkg/errors"
"gitlab.com/elixxir/crypto/broadcast"
jww "github.com/spf13/jwalterweatherman"
cryptoChannel "gitlab.com/elixxir/crypto/channel"
"gitlab.com/elixxir/xxdk-wasm/storage"
"syscall/js"
"github.com/hack-pad/go-indexeddb/idb"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/channels"
"gitlab.com/xx_network/primitives/id"
)
......@@ -187,14 +185,16 @@ func v1Upgrade(db *idb.Database) error {
// inserting some nonsense data and then checking to see if it persists.
// If this function still exists in 2023, god help us all. Amen.
func (w *wasmModel) hackTestDb() error {
testId := &id.DummyUser
testChannel := &broadcast.Channel{
ReceptionID: testId,
Name: "test",
Description: "test",
}
w.JoinChannel(testChannel)
result, err := w.get(channelsStoreName, js.ValueOf(testId.String()))
testMessage := &Message{
ID: 0,
Nickname: "test",
MessageID: id.DummyUser.Marshal(),
}
msgId, helper := w.receiveHelper(testMessage, false)
if helper != nil {
return helper
}
result, err := w.get(messageStoreName, js.ValueOf(msgId))
if err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment