Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
client
Commits
9fae107a
Commit
9fae107a
authored
Nov 16, 2022
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Fix race condition in FT wrapper_test (groupChat)
parent
2403765f
No related branches found
No related tags found
3 merge requests
!510
Release
,
!468
Changes to make Integration Test
,
!459
Move wg for file transfer test
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fileTransfer/groupChat/wrapper_test.go
+1
-1
1 addition, 1 deletion
fileTransfer/groupChat/wrapper_test.go
with
1 addition
and
1 deletion
fileTransfer/groupChat/wrapper_test.go
+
1
−
1
View file @
9fae107a
...
@@ -122,7 +122,6 @@ func Test_FileTransfer_Smoke(t *testing.T) {
...
@@ -122,7 +122,6 @@ func Test_FileTransfer_Smoke(t *testing.T) {
"
\n
sent: %q
\n
received: %q"
,
"
\n
sent: %q
\n
received: %q"
,
fileData
,
receivedFile
)
fileData
,
receivedFile
)
}
}
wg
.
Done
()
}
}
}
}
err3
:=
m2
.
RegisterReceivedProgressCallback
(
err3
:=
m2
.
RegisterReceivedProgressCallback
(
...
@@ -163,6 +162,7 @@ func Test_FileTransfer_Smoke(t *testing.T) {
...
@@ -163,6 +162,7 @@ func Test_FileTransfer_Smoke(t *testing.T) {
speed
:=
fileSizeKb
*
float32
(
time
.
Second
)
/
(
float32
(
sendTime
))
speed
:=
fileSizeKb
*
float32
(
time
.
Second
)
/
(
float32
(
sendTime
))
t
.
Logf
(
"Completed receiving file %q in %s (%.2f kb @ %.2f kb/s)."
,
t
.
Logf
(
"Completed receiving file %q in %s (%.2f kb @ %.2f kb/s)."
,
fileName
,
sendTime
,
fileSizeKb
,
speed
)
fileName
,
sendTime
,
fileSizeKb
,
speed
)
wg
.
Done
()
}
}
}()
}()
...
...
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