Fix opcua integration test (#9107)

This commit is contained in:
R290 2021-04-09 20:23:32 +02:00 committed by GitHub
parent 9853bf6c54
commit 114e4c2f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -78,6 +78,10 @@ services:
image: ncarlier/mqtt
ports:
- "1883:1883"
opcua:
image: open62541/open62541
ports:
- "4840:4840"
riemann:
image: stealthly/docker-riemann
ports:

View File

@ -20,7 +20,9 @@ type OPCTags struct {
}
func TestClient1Integration(t *testing.T) {
t.Skip("Skipping due to dial tcp 195.254.227.245:4840: connect: connection refused")
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
var testopctags = []OPCTags{
{"ProductName", "0", "i", "2261", "open62541 OPC UA Server"},
@ -32,7 +34,7 @@ func TestClient1Integration(t *testing.T) {
var err error
o.MetricName = "testing"
o.Endpoint = "opc.tcp://opcua.rocks:4840"
o.Endpoint = "opc.tcp://localhost:4840"
o.AuthMethod = "Anonymous"
o.ConnectTimeout = config.Duration(10 * time.Second)
o.RequestTimeout = config.Duration(1 * time.Second)