Commit 16df7141 authored by David Vorick's avatar David Vorick

go fmt upgrades (go1.8)

parent e8c55af5
......@@ -11,9 +11,9 @@ import (
func TestRPCID(t *testing.T) {
cases := map[rpcID]string{
rpcID{}: " ",
rpcID{'f', 'o', 'o'}: "foo ",
rpcID{'f', 'o', 'o', 'b', 'a', 'r', 'b', 'a'}: "foobarba",
{}: " ",
{'f', 'o', 'o'}: "foo ",
{'f', 'o', 'o', 'b', 'a', 'r', 'b', 'a'}: "foobarba",
}
for id, s := range cases {
if id.String() != s {
......
......@@ -148,7 +148,7 @@ func TestIsOffline(t *testing.T) {
// construct a contractor with a hostdb containing the scans
c := &Contractor{
contracts: map[types.FileContractID]modules.RenterContract{
types.FileContractID{1}: {HostPublicKey: types.SiaPublicKey{Key: []byte("foo")}},
{1}: {HostPublicKey: types.SiaPublicKey{Key: []byte("foo")}},
},
hdb: mapHostDB{
hosts: map[string]modules.HostDBEntry{
......
......@@ -52,7 +52,7 @@ func TestFileAvailable(t *testing.T) {
for i := uint64(0); i < f.numChunks(); i++ {
fc.Pieces = append(fc.Pieces, pieceData{Chunk: i, Piece: 0})
}
f.contracts = map[types.FileContractID]fileContract{types.FileContractID{}: fc}
f.contracts = map[types.FileContractID]fileContract{{}: fc}
if !f.available() {
t.Error("file should be available")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment