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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
03d26095
Commit
03d26095
authored
Oct 24, 2022
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix tests, increment version.go
parent
75816141
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
indexedDb/implementation_test.go
+5
-5
5 additions, 5 deletions
indexedDb/implementation_test.go
storage/version.go
+1
-1
1 addition, 1 deletion
storage/version.go
with
6 additions
and
6 deletions
indexedDb/implementation_test.go
+
5
−
5
View file @
03d26095
...
@@ -37,7 +37,7 @@ func dummyCallback(uint64, *id.ID, bool) {}
...
@@ -37,7 +37,7 @@ func dummyCallback(uint64, *id.ID, bool) {}
func
Test_wasmModel_UpdateSentStatus
(
t
*
testing
.
T
)
{
func
Test_wasmModel_UpdateSentStatus
(
t
*
testing
.
T
)
{
testString
:=
"test"
testString
:=
"test"
testMsgId
:=
channel
.
MakeMessageID
([]
byte
(
testString
),
&
id
.
ID
{
1
})
testMsgId
:=
channel
.
MakeMessageID
([]
byte
(
testString
),
&
id
.
ID
{
1
})
eventModel
,
err
:=
newWASMModel
(
testString
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
testString
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"%+v"
,
err
)
t
.
Fatalf
(
"%+v"
,
err
)
}
}
...
@@ -90,7 +90,7 @@ func Test_wasmModel_UpdateSentStatus(t *testing.T) {
...
@@ -90,7 +90,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
)
{
eventModel
,
err
:=
newWASMModel
(
"test"
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
"test"
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"%+v"
,
err
)
t
.
Fatalf
(
"%+v"
,
err
)
}
}
...
@@ -129,7 +129,7 @@ func Test_wasmModel_JoinChannel_LeaveChannel(t *testing.T) {
...
@@ -129,7 +129,7 @@ func Test_wasmModel_JoinChannel_LeaveChannel(t *testing.T) {
// Test UUID gets returned when different messages are added.
// Test UUID gets returned when different messages are added.
func
Test_wasmModel_UUIDTest
(
t
*
testing
.
T
)
{
func
Test_wasmModel_UUIDTest
(
t
*
testing
.
T
)
{
testString
:=
"testHello"
testString
:=
"testHello"
eventModel
,
err
:=
newWASMModel
(
testString
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
testString
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"%+v"
,
err
)
t
.
Fatalf
(
"%+v"
,
err
)
}
}
...
@@ -163,7 +163,7 @@ func Test_wasmModel_UUIDTest(t *testing.T) {
...
@@ -163,7 +163,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
)
{
testString
:=
"testHello"
testString
:=
"testHello"
eventModel
,
err
:=
newWASMModel
(
testString
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
testString
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"%+v"
,
err
)
t
.
Fatalf
(
"%+v"
,
err
)
}
}
...
@@ -200,7 +200,7 @@ func Test_wasmModel_deleteMsgByChannel(t *testing.T) {
...
@@ -200,7 +200,7 @@ func Test_wasmModel_deleteMsgByChannel(t *testing.T) {
testString
:=
"test_deleteMsgByChannel"
testString
:=
"test_deleteMsgByChannel"
totalMessages
:=
10
totalMessages
:=
10
expectedMessages
:=
5
expectedMessages
:=
5
eventModel
,
err
:=
newWASMModel
(
testString
,
dummyCallback
)
eventModel
,
err
:=
newWASMModel
(
testString
,
nil
,
dummyCallback
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"%+v"
,
err
)
t
.
Fatalf
(
"%+v"
,
err
)
}
}
...
...
This diff is collapsed.
Click to expand it.
storage/version.go
+
1
−
1
View file @
03d26095
...
@@ -17,7 +17,7 @@ import (
...
@@ -17,7 +17,7 @@ import (
)
)
// SEMVER is the current semantic version of xxDK WASM.
// SEMVER is the current semantic version of xxDK WASM.
const
SEMVER
=
"0.
0
.0"
const
SEMVER
=
"0.
1
.0"
// Storage keys.
// Storage keys.
const
(
const
(
...
...
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