Skip to content

Commit 5d278ab

Browse files
committed
Fixed test timeout
1 parent e5564c4 commit 5d278ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: io/formatter_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func makeTestStructs() (testStructs []testStruct) {
4747

4848
func TestHproseSimpleFormatter(t *testing.T) {
4949
wg := new(sync.WaitGroup)
50-
for i := 0; i < 1000; i++ {
50+
for i := 0; i < 50; i++ {
5151
wg.Add(1)
5252
go func() {
5353
defer wg.Done()
@@ -73,7 +73,7 @@ func TestHproseSimpleFormatter(t *testing.T) {
7373
func TestHproseFormatter(t *testing.T) {
7474
formatter := io.Formatter{}
7575
wg := new(sync.WaitGroup)
76-
for i := 0; i < 1000; i++ {
76+
for i := 0; i < 50; i++ {
7777
wg.Add(1)
7878
go func() {
7979
defer wg.Done()

0 commit comments

Comments
 (0)