summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests')
-rw-r--r--integrationtests/dmap1a.csv.expected2
-rw-r--r--integrationtests/dmap1b.csv.expected2
-rw-r--r--integrationtests/dmap1c.csv.expected2
-rw-r--r--integrationtests/dserver1.csv.expected2
-rw-r--r--integrationtests/dserver_test.go8
5 files changed, 10 insertions, 6 deletions
diff --git a/integrationtests/dmap1a.csv.expected b/integrationtests/dmap1a.csv.expected
index 3c55c7c..1983bb5 100644
--- a/integrationtests/dmap1a.csv.expected
+++ b/integrationtests/dmap1a.csv.expected
@@ -1,2 +1,2 @@
-count($line),last($time),avg($goroutines),min(concurrentconnections),max(lifetimeconnections)
+count($line),last($time),avg($goroutines),min(concurrentConnections),max(lifetimeConnections)
597,1002-071949,11.628141,0.000000,6.000000
diff --git a/integrationtests/dmap1b.csv.expected b/integrationtests/dmap1b.csv.expected
index e1d27ce..cf8e653 100644
--- a/integrationtests/dmap1b.csv.expected
+++ b/integrationtests/dmap1b.csv.expected
@@ -1,2 +1,2 @@
-count($line),last($time),avg($goroutines),min(concurrentconnections),max(lifetimeconnections)
+count($line),last($time),avg($goroutines),min(concurrentConnections),max(lifetimeConnections)
527,1002-071949,11.411765,0.000000,6.000000
diff --git a/integrationtests/dmap1c.csv.expected b/integrationtests/dmap1c.csv.expected
index 7e232ae..4521e1b 100644
--- a/integrationtests/dmap1c.csv.expected
+++ b/integrationtests/dmap1c.csv.expected
@@ -1,2 +1,2 @@
-count($line),last($time),avg($goroutines),min(concurrentconnections),max(lifetimeconnections)
+count($line),last($time),avg($goroutines),min(concurrentConnections),max(lifetimeConnections)
1,1002-071949,15.000000,0.000000,6.000000
diff --git a/integrationtests/dserver1.csv.expected b/integrationtests/dserver1.csv.expected
index 3c55c7c..1983bb5 100644
--- a/integrationtests/dserver1.csv.expected
+++ b/integrationtests/dserver1.csv.expected
@@ -1,2 +1,2 @@
-count($line),last($time),avg($goroutines),min(concurrentconnections),max(lifetimeconnections)
+count($line),last($time),avg($goroutines),min(concurrentConnections),max(lifetimeConnections)
597,1002-071949,11.628141,0.000000,6.000000
diff --git a/integrationtests/dserver_test.go b/integrationtests/dserver_test.go
index a2f20da..309c84b 100644
--- a/integrationtests/dserver_test.go
+++ b/integrationtests/dserver_test.go
@@ -23,6 +23,10 @@ func TestDServer1(t *testing.T) {
queryFile := fmt.Sprintf("%s.query", csvFile)
expectedQueryFile := "dserver1.csv.query.expected"
+ // In case files still exists from previous test run.
+ os.Remove(csvFile)
+ os.Remove(queryFile)
+
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
@@ -31,7 +35,7 @@ func TestDServer1(t *testing.T) {
"--cfg", "dserver1.cfg",
"--logger", "stdout",
"--logLevel", "info",
- "--bindAddress", "localhost",
+ "--bindAddress", "127.0.0.1",
"--shutdownAfter", "5",
"--port", fmt.Sprintf("%d", getUniquePortNumber()),
)
@@ -98,7 +102,7 @@ func TestDServer2(t *testing.T) {
"--cfg", "dserver2.cfg",
"--logger", "stdout",
"--logLevel", "debug",
- "--bindAddress", "localhost",
+ "--bindAddress", "127.0.0.1",
"--shutdownAfter", "7",
"--port", fmt.Sprintf("%d", getUniquePortNumber()),
)