mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
tests: Remove RPC wording from the code (#14142)
The lock was using net/rpc in the past but it got replaced with a REST API. This commit will fix function names/comments to avoid confusion.
This commit is contained in:
@@ -30,9 +30,9 @@ import (
|
||||
|
||||
// TestMain initializes the testing framework
|
||||
func TestMain(m *testing.M) {
|
||||
startRPCServers()
|
||||
startLockServers()
|
||||
|
||||
// Initialize net/rpc clients for dsync.
|
||||
// Initialize locker clients for dsync.
|
||||
var clnts []NetLocker
|
||||
for i := 0; i < len(nodes); i++ {
|
||||
clnts = append(clnts, newClient(nodes[i].URL))
|
||||
@@ -43,7 +43,7 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
code := m.Run()
|
||||
stopRPCServers()
|
||||
stopLockServers()
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ func TestFailedRefreshLock(t *testing.T) {
|
||||
t.Skip("skipping test in short mode.")
|
||||
}
|
||||
|
||||
// Simulate Refresh RPC response to return no locking found
|
||||
// Simulate Refresh response to return no locking found
|
||||
for i := range lockServers[:3] {
|
||||
lockServers[i].setRefreshReply(false)
|
||||
defer lockServers[i].setRefreshReply(true)
|
||||
|
||||
Reference in New Issue
Block a user