Skip to content

Commit a351617

Browse files
validate history collected by recording client
Signed-off-by: Abdur Rehman <[email protected]>
1 parent 848c5ed commit a351617

File tree

1 file changed

+0
-24
lines changed
  • tests/antithesis/test-template/robustness

1 file changed

+0
-24
lines changed

tests/antithesis/test-template/robustness/main.go

-24
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
"go.etcd.io/etcd/tests/v3/framework/e2e"
3434
"go.etcd.io/etcd/tests/v3/robustness/client"
3535
"go.etcd.io/etcd/tests/v3/robustness/identity"
36-
"go.etcd.io/etcd/tests/v3/robustness/model"
3736
robustnessrand "go.etcd.io/etcd/tests/v3/robustness/random"
3837
"go.etcd.io/etcd/tests/v3/robustness/report"
3938
"go.etcd.io/etcd/tests/v3/robustness/scenarios"
@@ -49,12 +48,6 @@ var profile = traffic.Profile{
4948
MaxNonUniqueRequestConcurrency: 3,
5049
}
5150

52-
var (
53-
WaitBeforeFailpoint = time.Second
54-
WaitJitter = traffic.DefaultCompactionPeriod
55-
WaitAfterFailpoint = time.Second
56-
)
57-
5851
func main() {
5952
ctx := context.Background()
6053
baseTime := time.Now()
@@ -104,23 +97,6 @@ func validateReport(ctx context.Context, lg *zap.Logger, c *e2e.EtcdProcessClust
10497
r.Visualize = validate.ValidateAndReturnVisualize(t, lg, validateConfig, r.Client, persistedRequests, 5*time.Minute).Visualize
10598
}
10699

107-
func randomizeTime(base time.Duration, jitter time.Duration) time.Duration {
108-
return base - jitter + time.Duration(rand.Int63n(int64(jitter)*2))
109-
}
110-
111-
func operationsMaxRevision(reports []report.ClientReport) int64 {
112-
var maxRevision int64
113-
for _, r := range reports {
114-
for _, op := range r.KeyValue {
115-
resp := op.Output.(model.MaybeEtcdResponse)
116-
if resp.Revision > maxRevision {
117-
maxRevision = resp.Revision
118-
}
119-
}
120-
}
121-
return maxRevision
122-
}
123-
124100
func connect(endpoint string, ids identity.Provider, baseTime time.Time) *client.RecordingClient {
125101
cli, err := client.NewRecordingClient([]string{endpoint}, ids, baseTime)
126102
if err != nil {

0 commit comments

Comments
 (0)