Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
3560762d
Commit
3560762d
authored
2 years ago
by
Jono Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests
parent
62f2afab
No related branches found
No related tags found
3 merge requests
!60
Revert "Fail a test to be sure it works"
,
!21
added optional db encryption
,
!20
Create JS bindings for ChannelDbCipher
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indexedDb/implementation_test.go
+3
-0
3 additions, 0 deletions
indexedDb/implementation_test.go
storage/indexedDbEncryptionTrack.go
+2
-0
2 additions, 0 deletions
storage/indexedDbEncryptionTrack.go
with
5 additions
and
0 deletions
indexedDb/implementation_test.go
+
3
−
0
View file @
3560762d
...
@@ -12,6 +12,7 @@ package indexedDb
...
@@ -12,6 +12,7 @@ package indexedDb
import
(
import
(
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"gitlab.com/elixxir/xxdk-wasm/storage"
"gitlab.com/xx_network/primitives/netTime"
"gitlab.com/xx_network/primitives/netTime"
"os"
"os"
"strconv"
"strconv"
...
@@ -90,6 +91,7 @@ func Test_wasmModel_UpdateSentStatus(t *testing.T) {
...
@@ -90,6 +91,7 @@ func Test_wasmModel_UpdateSentStatus(t *testing.T) {
// Smoke test wasmModel.JoinChannel/wasmModel.LeaveChannel happy paths.
// Smoke test wasmModel.JoinChannel/wasmModel.LeaveChannel happy paths.
func
Test_wasmModel_JoinChannel_LeaveChannel
(
t
*
testing
.
T
)
{
func
Test_wasmModel_JoinChannel_LeaveChannel
(
t
*
testing
.
T
)
{
storage
.
GetLocalStorage
()
.
Clear
()
eventModel
,
err
:=
newWASMModel
(
"test"
,
nil
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
"test"
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"%+v"
,
err
)
t
.
Fatalf
(
"%+v"
,
err
)
...
@@ -162,6 +164,7 @@ func Test_wasmModel_UUIDTest(t *testing.T) {
...
@@ -162,6 +164,7 @@ func Test_wasmModel_UUIDTest(t *testing.T) {
// Tests if the same message ID being sent always returns the same UUID.
// Tests if the same message ID being sent always returns the same UUID.
func
Test_wasmModel_DuplicateReceives
(
t
*
testing
.
T
)
{
func
Test_wasmModel_DuplicateReceives
(
t
*
testing
.
T
)
{
storage
.
GetLocalStorage
()
.
Clear
()
testString
:=
"testHello"
testString
:=
"testHello"
eventModel
,
err
:=
newWASMModel
(
testString
,
nil
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
testString
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
storage/indexedDbEncryptionTrack.go
+
2
−
0
View file @
3560762d
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
// LICENSE file. //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//go:build js && wasm
package
storage
package
storage
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment