diff options
| author | bingoohuang <bingoo.huang@gmail.com> | 2019-01-17 09:17:19 +0800 |
|---|---|---|
| committer | bingoohuang <bingoo.huang@gmail.com> | 2019-01-17 09:17:19 +0800 |
| commit | ab6be025d76748388ad3eea6fe6ca000db1c2435 (patch) | |
| tree | 1be9b1b5e7f91693f4cabe3ae0d114cb7f7dced6 /weed/storage/replica_placement_test.go | |
| parent | 6ddfaf33cba953b92a5e3383a15bf26ab1845dbc (diff) | |
| download | seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.tar.xz seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.zip | |
go fmt and fix some typo
Diffstat (limited to 'weed/storage/replica_placement_test.go')
| -rw-r--r-- | weed/storage/replica_placement_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/storage/replica_placement_test.go b/weed/storage/replica_placement_test.go index 9c2161e94..7968af7cb 100644 --- a/weed/storage/replica_placement_test.go +++ b/weed/storage/replica_placement_test.go @@ -4,11 +4,11 @@ import ( "testing" ) -func TestReplicaPlacemnetSerialDeserial(t *testing.T) { +func TestReplicaPlacementSerialDeserial(t *testing.T) { rp, _ := NewReplicaPlacementFromString("001") - new_rp, _ := NewReplicaPlacementFromByte(rp.Byte()) - if rp.String() != new_rp.String() { - println("expected:", rp.String(), "actual:", new_rp.String()) + newRp, _ := NewReplicaPlacementFromByte(rp.Byte()) + if rp.String() != newRp.String() { + println("expected:", rp.String(), "actual:", newRp.String()) t.Fail() } } |
