Skip to content

Commit f5d2182

Browse files
authored
Merge pull request #1114 from vsmk98/go-1.15.5-recompile
change to golang version 1.15.5
2 parents 7b72638 + 69c4199 commit f5d2182

File tree

11 files changed

+36
-28
lines changed

11 files changed

+36
-28
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches:
1010
- master
1111
env:
12-
GO_VERSION: 1.13
12+
GO_VERSION: 1.15.5
1313
GOPATH: ${{ github.workspace }}/go
1414
WORKING_DIR: ${{ github.workspace }}/go/src/github.com/ethereum/go-ethereum
1515
jobs:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '**.md'
77
- .gitignore
88
env:
9-
GO_VERSION: 1.13
9+
GO_VERSION: 1.15.5
1010
jobs:
1111
lint:
1212
name: 'Code linters'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
tags:
55
- 'v*'
66
env:
7-
GO_VERSION: 1.13
7+
GO_VERSION: 1.15.5
88
GOPATH: ${{ github.workspace }}/go
99
WORKING_DIR: ${{ github.workspace }}/go/src/github.com/ethereum/go-ethereum
1010
jobs:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Geth in a stock Go builder container
2-
FROM golang:1.13-alpine as builder
2+
FROM golang:1.15.5-alpine as builder
33

44
RUN apk add --no-cache make gcc musl-dev linux-headers git
55

consensus/istanbul/core/core_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package core
1818

1919
import (
20+
"fmt"
2021
"math/big"
2122
"reflect"
2223
"testing"
@@ -88,7 +89,7 @@ func TestQuorumSize(t *testing.T) {
8889

8990
valSet := c.valSet
9091
for i := 1; i <= 1000; i++ {
91-
valSet.AddValidator(common.StringToAddress(string(i)))
92+
valSet.AddValidator(common.StringToAddress(fmt.Sprint(i)))
9293
if 2*c.QuorumSize() <= (valSet.Size()+valSet.F()) || 2*c.QuorumSize() > (valSet.Size()+valSet.F()+2) {
9394
t.Errorf("quorumSize constraint failed, expected value (2*QuorumSize > Size+F && 2*QuorumSize <= Size+F+2) to be:%v, got: %v, for size: %v", true, false, valSet.Size())
9495
}

consensus/istanbul/validator/default_test.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package validator
1818

1919
import (
20+
"fmt"
2021
"reflect"
2122
"strings"
2223
"testing"
@@ -136,39 +137,39 @@ func testEmptyValSet(t *testing.T) {
136137

137138
func testAddAndRemoveValidator(t *testing.T) {
138139
valSet := NewSet(ExtractValidators([]byte{}), istanbul.RoundRobin)
139-
if !valSet.AddValidator(common.StringToAddress(string(2))) {
140+
if !valSet.AddValidator(common.StringToAddress(fmt.Sprint("2"))) {
140141
t.Error("the validator should be added")
141142
}
142-
if valSet.AddValidator(common.StringToAddress(string(2))) {
143+
if valSet.AddValidator(common.StringToAddress(fmt.Sprint("2"))) {
143144
t.Error("the existing validator should not be added")
144145
}
145-
valSet.AddValidator(common.StringToAddress(string(1)))
146-
valSet.AddValidator(common.StringToAddress(string(0)))
146+
valSet.AddValidator(common.StringToAddress(fmt.Sprint("1")))
147+
valSet.AddValidator(common.StringToAddress(fmt.Sprint("0")))
147148
if len(valSet.List()) != 3 {
148149
t.Error("the size of validator set should be 3")
149150
}
150151

151152
for i, v := range valSet.List() {
152-
expected := common.StringToAddress(string(i))
153+
expected := common.StringToAddress((fmt.Sprint(i)))
153154
if v.Address() != expected {
154155
t.Errorf("the order of validators is wrong: have %v, want %v", v.Address().Hex(), expected.Hex())
155156
}
156157
}
157158

158-
if !valSet.RemoveValidator(common.StringToAddress(string(2))) {
159+
if !valSet.RemoveValidator(common.StringToAddress(fmt.Sprint("2"))) {
159160
t.Error("the validator should be removed")
160161
}
161-
if valSet.RemoveValidator(common.StringToAddress(string(2))) {
162+
if valSet.RemoveValidator(common.StringToAddress(fmt.Sprint("2"))) {
162163
t.Error("the non-existing validator should not be removed")
163164
}
164165
if len(valSet.List()) != 2 {
165166
t.Error("the size of validator set should be 2")
166167
}
167-
valSet.RemoveValidator(common.StringToAddress(string(1)))
168+
valSet.RemoveValidator(common.StringToAddress(fmt.Sprint("1")))
168169
if len(valSet.List()) != 1 {
169170
t.Error("the size of validator set should be 1")
170171
}
171-
valSet.RemoveValidator(common.StringToAddress(string(0)))
172+
valSet.RemoveValidator(common.StringToAddress(fmt.Sprint("0")))
172173
if len(valSet.List()) != 0 {
173174
t.Error("the size of validator set should be 0")
174175
}

core/tx_pool_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,10 @@ func testTransactionQueueGlobalLimiting(t *testing.T, nolocals bool) {
965965
//
966966
// This logic should not hold for local transactions, unless the local tracking
967967
// mechanism is disabled.
968-
func TestTransactionQueueTimeLimiting(t *testing.T) { testTransactionQueueTimeLimiting(t, false) }
969-
func TestTransactionQueueTimeLimitingNoLocals(t *testing.T) { testTransactionQueueTimeLimiting(t, true) }
968+
func TestTransactionQueueTimeLimiting(t *testing.T) { testTransactionQueueTimeLimiting(t, false) }
969+
func TestTransactionQueueTimeLimitingNoLocals(t *testing.T) {
970+
testTransactionQueueTimeLimiting(t, true)
971+
}
970972

971973
func testTransactionQueueTimeLimiting(t *testing.T, nolocals bool) {
972974
// Reduce the eviction interval to a testable amount

eth/downloader/downloader_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,14 @@ func assertOwnForkedChain(t *testing.T, tester *downloadTester, common int, leng
485485
// Tests that simple synchronization against a canonical chain works correctly.
486486
// In this test common ancestor lookup should be short circuited and not require
487487
// binary searching.
488-
func TestCanonicalSynchronisation62(t *testing.T) { testCanonicalSynchronisation(t, 62, FullSync) }
489-
func TestCanonicalSynchronisation63Full(t *testing.T) { testCanonicalSynchronisation(t, 63, FullSync) }
490-
func TestCanonicalSynchronisation63Fast(t *testing.T) { testCanonicalSynchronisation(t, 63, FastSync) }
491-
func TestCanonicalSynchronisation64Full(t *testing.T) { testCanonicalSynchronisation(t, 64, FullSync) }
492-
func TestCanonicalSynchronisation64Fast(t *testing.T) { testCanonicalSynchronisation(t, 64, FastSync) }
493-
func TestCanonicalSynchronisation64Light(t *testing.T) { testCanonicalSynchronisation(t, 64, LightSync) }
488+
func TestCanonicalSynchronisation62(t *testing.T) { testCanonicalSynchronisation(t, 62, FullSync) }
489+
func TestCanonicalSynchronisation63Full(t *testing.T) { testCanonicalSynchronisation(t, 63, FullSync) }
490+
func TestCanonicalSynchronisation63Fast(t *testing.T) { testCanonicalSynchronisation(t, 63, FastSync) }
491+
func TestCanonicalSynchronisation64Full(t *testing.T) { testCanonicalSynchronisation(t, 64, FullSync) }
492+
func TestCanonicalSynchronisation64Fast(t *testing.T) { testCanonicalSynchronisation(t, 64, FastSync) }
493+
func TestCanonicalSynchronisation64Light(t *testing.T) {
494+
testCanonicalSynchronisation(t, 64, LightSync)
495+
}
494496

495497
func testCanonicalSynchronisation(t *testing.T, protocol int, mode SyncMode) {
496498
t.Parallel()

p2p/discv5/node_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var parseNodeTests = []struct {
141141
{
142142
// This test checks that errors from url.Parse are handled.
143143
rawurl: "://foo",
144-
wantError: `parse ://foo: missing protocol scheme`,
144+
wantError: `missing protocol scheme`,
145145
},
146146
}
147147

plugin/settings_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ func TestPluginInterfaceName_UnmarshalJSON_whenTypical(t *testing.T) {
186186
}
187187
}
188188
`), &value))
189-
assert.Contains(value.MyMap, PluginInterfaceName("Foo"))
190-
assert.Contains(value.MyMap, PluginInterfaceName("BAR"))
189+
assert.Contains(value.MyMap, PluginInterfaceName("foo"))
190+
assert.Contains(value.MyMap, PluginInterfaceName("bar"))
191191
}
192192

193193
func TestAccountAPIProviderFunc_OnlyExposeAccountCreationAPI(t *testing.T) {

0 commit comments

Comments
 (0)