Flaky Test Fix: TestSink [VAULT-720] (#10086)
* fixed * test sink fix * remove print statements used for debugging * remove print statements used for debugging Co-authored-by: HridoyRoy <hridoyroy@Hridoys-MacBook-Pro.local> Co-authored-by: HridoyRoy <hridoyroy@Hridoys-MBP.hitronhub.home>
This commit is contained in:
parent
a161fc7047
commit
27d68e7df2
|
@ -48,10 +48,11 @@ func TestSinkServer(t *testing.T) {
|
||||||
defer timer.Stop()
|
defer timer.Stop()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
|
||||||
case err := <-errCh:
|
case err := <-errCh:
|
||||||
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for _, path := range []string{path1, path2} {
|
for _, path := range []string{path1, path2} {
|
||||||
fileBytes, err := ioutil.ReadFile(fmt.Sprintf("%s/token", path))
|
fileBytes, err := ioutil.ReadFile(fmt.Sprintf("%s/token", path))
|
||||||
|
|
Loading…
Reference in New Issue