A few more tweaks
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
a84ab2d0f6
commit
bd64c60629
|
|
@ -30,7 +30,7 @@ components:
|
||||||
- component: azure.eventhubs
|
- component: azure.eventhubs
|
||||||
operations: ["create", "operations", "read"]
|
operations: ["create", "operations", "read"]
|
||||||
config:
|
config:
|
||||||
readBindingWait: 15s
|
readBindingWait: 8s
|
||||||
- component: azure.eventgrid
|
- component: azure.eventgrid
|
||||||
operations: ["create", "operations", "read"]
|
operations: ["create", "operations", "read"]
|
||||||
config:
|
config:
|
||||||
|
|
|
||||||
|
|
@ -262,10 +262,10 @@ func ConformanceTests(t *testing.T, props map[string]string, inputBinding bindin
|
||||||
// To stop the test from hanging if there's no response, we can setup a simple timeout.
|
// To stop the test from hanging if there's no response, we can setup a simple timeout.
|
||||||
select {
|
select {
|
||||||
case <-readChan:
|
case <-readChan:
|
||||||
assert.Greater(t, inputBindingCall, 0)
|
assert.Greater(t, inputBindingCall.Load(), int32(0))
|
||||||
testLogger.Info("Read channel signalled.")
|
testLogger.Info("Read channel signalled.")
|
||||||
case <-time.After(config.ReadBindingTimeout):
|
case <-time.After(config.ReadBindingTimeout):
|
||||||
assert.Greaterf(t, inputBindingCall, 0, "Timed out after %v while reading", config.ReadBindingTimeout)
|
assert.Greaterf(t, inputBindingCall.Load(), int32(0), "Timed out after %v while reading", config.ReadBindingTimeout)
|
||||||
testLogger.Info("Read timeout.")
|
testLogger.Info("Read timeout.")
|
||||||
}
|
}
|
||||||
testLogger.Info("Verify Read test done.")
|
testLogger.Info("Verify Read test done.")
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,12 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:gochecknoglobals
|
//nolint:gochecknoglobals
|
||||||
var testLogger = logger.NewLogger("testLogger")
|
var testLogger logger.Logger
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
testLogger = logger.NewLogger("testLogger")
|
||||||
|
testLogger.SetOutputLevel(logger.DebugLevel)
|
||||||
|
}
|
||||||
|
|
||||||
type TestConfiguration struct {
|
type TestConfiguration struct {
|
||||||
ComponentType string `yaml:"componentType,omitempty"`
|
ComponentType string `yaml:"componentType,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue