You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ho...@apache.org on 2021/02/06 12:56:59 UTC
[skywalking-infra-e2e] 04/04: Implement the verify of actual data
file
This is an automated email from the ASF dual-hosted git repository.
hoshea pushed a commit to branch verifier
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git
commit 01248f06e642fcd8b3d8d28eec48451c37f92251
Author: Hoshea <fg...@gmail.com>
AuthorDate: Sat Feb 6 20:56:25 2021 +0800
Implement the verify of actual data file
---
commands/verify/verify.go | 1 +
internal/components/verifier/verifier.go | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/commands/verify/verify.go b/commands/verify/verify.go
index 06b908b..f178015 100644
--- a/commands/verify/verify.go
+++ b/commands/verify/verify.go
@@ -19,6 +19,7 @@ package verify
import (
"fmt"
+
"github.com/apache/skywalking-infra-e2e/internal/components/verifier"
"github.com/spf13/cobra"
diff --git a/internal/components/verifier/verifier.go b/internal/components/verifier/verifier.go
index 4c46263..0c095ca 100644
--- a/internal/components/verifier/verifier.go
+++ b/internal/components/verifier/verifier.go
@@ -81,9 +81,8 @@ func verify(actualData, expectedTemplate string) error {
diff := cmp.Diff(expected, actual)
fmt.Println(diff)
return &MismatchError{}
- } else {
- logger.Log.Info("the actual data matches the expected data")
}
+ logger.Log.Info("the actual data matches the expected data")
return nil
}