aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/concurrency_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-04-08 20:34:24 +0200
committerJakob Unterwurzacher2019-04-08 20:34:24 +0200
commit24036ab89f950be85aa306f5996a4ce218c48aab (patch)
treecba714f1484ca3bc9ecf19057f4d84f7fd489e68 /tests/matrix/concurrency_test.go
parent8cad0e2f4f288482d3528c80fb64fc1e55f26e34 (diff)
tests: speed up new tests a little
Before: ok github.com/rfjakob/gocryptfs/tests/matrix 18.560s After: ok github.com/rfjakob/gocryptfs/tests/matrix 13.425s
Diffstat (limited to 'tests/matrix/concurrency_test.go')
-rw-r--r--tests/matrix/concurrency_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/matrix/concurrency_test.go b/tests/matrix/concurrency_test.go
index 7b0ce1a..7fd3a00 100644
--- a/tests/matrix/concurrency_test.go
+++ b/tests/matrix/concurrency_test.go
@@ -26,7 +26,7 @@ func TestConcurrentReadWrite(t *testing.T) {
}
buf := make([]byte, 100)
content := []byte("1234567890")
- threads := 30
+ threads := 10
loops := 30
for i := 0; i < threads; i++ {
// Reader thread
@@ -80,7 +80,7 @@ func TestConcurrentReadWrite(t *testing.T) {
func TestConcurrentReadCreate(t *testing.T) {
fn := test_helpers.DefaultPlainDir + "/TestConcurrentReadCreate"
content := []byte("1234567890")
- loops := 1000
+ loops := 100
var wg sync.WaitGroup
// "Creater" thread
wg.Add(1)