From ec3ff470f61b9c3e1269d19d05eb0402914a8389 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Mon, 24 Apr 2023 18:55:18 +0800 Subject: [PATCH] test: rename runOperation to executeOperation Signed-off-by: Benjamin Wang --- concurrent_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concurrent_test.go b/concurrent_test.go index edb0b0c8c..581e07935 100644 --- a/concurrent_test.go +++ b/concurrent_test.go @@ -266,7 +266,7 @@ func (w *worker) run() (historyRecords, error) { } op := w.pickOperation() - rec, err := runOperation(op, w.db, w.bucket, w.keys, w.conf) + rec, err := executeOperation(op, w.db, w.bucket, w.keys, w.conf) if err != nil { readErr := fmt.Errorf("[%s: %s]: %w", w.name(), op, err) w.t.Error(readErr) @@ -294,7 +294,7 @@ func (w *worker) pickOperation() OperationType { panic("unexpected") } -func runOperation(op OperationType, db *btesting.DB, bucket []byte, keys []string, conf concurrentConfig) (historyRecord, error) { +func executeOperation(op OperationType, db *btesting.DB, bucket []byte, keys []string, conf concurrentConfig) (historyRecord, error) { switch op { case Read: return executeRead(db, bucket, keys, conf.readInterval)