constellation/cli/cmd/statuswaiter_test.go
Daniel Weiße eb3411f2c1 Allow waiting for multiple states (#11)
* Simplify `fetch_pcrs.sh` script

* Allow waiting for multiple states

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
2022-03-29 09:10:22 +02:00

16 lines
285 B
Go

package cmd
import (
"context"
"github.com/edgelesssys/constellation/coordinator/state"
)
type stubStatusWaiter struct {
waitForAllErr error
}
func (w stubStatusWaiter) WaitForAll(ctx context.Context, endpoints []string, status ...state.State) error {
return w.waitForAllErr
}