Bläddra i källkod

remove line limit from dashboard simulation test

flashmob 8 år sedan
förälder
incheckning
ea7149d214
1 ändrade filer med 0 tillägg och 6 borttagningar
  1. 0 6
      dashboard/dashboard_test.go

+ 0 - 6
dashboard/dashboard_test.go

@@ -106,7 +106,6 @@ func TestSimulationRun(t *testing.T) {
 
 
 	// match with quotes or without, ie. time="..." or level=
 	// match with quotes or without, ie. time="..." or level=
 	r := regexp.MustCompile(`(.+?)=("[^"]*"|\S*)\s*`)
 	r := regexp.MustCompile(`(.+?)=("[^"]*"|\S*)\s*`)
-	c := 0
 	simStart := time.Now()
 	simStart := time.Now()
 	var start time.Time
 	var start time.Time
 	for scanner.Scan() {
 	for scanner.Scan() {
@@ -144,11 +143,6 @@ func TestSimulationRun(t *testing.T) {
 
 
 		l.WithFields(fields).Info(msg)
 		l.WithFields(fields).Info(msg)
 
 
-		c++
-		if c > 5000 {
-			break
-		}
-
 	}
 	}
 
 
 	Stop()
 	Stop()