Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
cecf6e09
Commit
cecf6e09
authored
4 years ago
by
Rafal Augustyniak
Browse files
Options
Download
Email Patches
Plain Diff
fix integration tests
parent
c43e6f49
pass-config-as-proto-message
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/module/chaos/serverexperimentation/xds/xds_integration_test.go
+2
-3
...e/chaos/serverexperimentation/xds/xds_integration_test.go
with
2 additions
and
3 deletions
+2
-3
backend/module/chaos/serverexperimentation/xds/xds_integration_test.go
+
2
-
3
View file @
cecf6e09
...
...
@@ -11,7 +11,6 @@ import (
_
"github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3"
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/timestamppb"
...
...
@@ -271,12 +270,12 @@ func (t *testCriterion) start() {
t
.
startCheckingTime
=
true
}
func
(
t
*
testCriterion
)
ShouldTerminate
(
experiment
*
experimentstore
.
Experiment
,
experimentConfig
proto
.
Message
)
(
string
,
error
)
{
func
(
t
*
testCriterion
)
ShouldTerminate
(
experiment
*
experimentstore
.
Experiment
)
(
string
,
error
)
{
t
.
Lock
()
defer
t
.
Unlock
()
// Sanity check that we get the expected configuration type.
if
_
,
ok
:=
experimentConfig
.
(
*
serverexperimentation
.
HTTPFaultConfig
);
!
ok
{
if
_
,
ok
:=
experiment
.
Config
.
Message
.
(
*
serverexperimentation
.
HTTPFaultConfig
);
!
ok
{
panic
(
"received unexpected experiment config"
)
}
started
:=
experiment
.
Run
.
StartTime
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help