mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-27 02:22:40 +00:00
Merge pull request #3261 from tendermint/anton/circle
Revert "quick fix for CircleCI (#2279)"
This commit is contained in:
+12
-10
@@ -65,12 +65,13 @@ func TestSmall(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
This test is quite hacky because it relies on SetFinalizer
|
||||
which isn't guaranteed to run at all.
|
||||
*/
|
||||
// nolint: megacheck
|
||||
// This test is quite hacky because it relies on SetFinalizer
|
||||
// which isn't guaranteed to run at all.
|
||||
//nolint:unused,deadcode
|
||||
func _TestGCFifo(t *testing.T) {
|
||||
if runtime.GOARCH != "amd64" {
|
||||
t.Skipf("Skipping on non-amd64 machine")
|
||||
}
|
||||
|
||||
const numElements = 1000000
|
||||
l := New()
|
||||
@@ -113,12 +114,13 @@ func _TestGCFifo(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
This test is quite hacky because it relies on SetFinalizer
|
||||
which isn't guaranteed to run at all.
|
||||
*/
|
||||
// nolint: megacheck
|
||||
// This test is quite hacky because it relies on SetFinalizer
|
||||
// which isn't guaranteed to run at all.
|
||||
//nolint:unused,deadcode
|
||||
func _TestGCRandom(t *testing.T) {
|
||||
if runtime.GOARCH != "amd64" {
|
||||
t.Skipf("Skipping on non-amd64 machine")
|
||||
}
|
||||
|
||||
const numElements = 1000000
|
||||
l := New()
|
||||
|
||||
@@ -43,7 +43,7 @@ func treat(s string, color string) string {
|
||||
}
|
||||
|
||||
func treatAll(color string, args ...interface{}) string {
|
||||
var parts []string
|
||||
parts := make([]string, 0, len(args))
|
||||
for _, arg := range args {
|
||||
parts = append(parts, treat(fmt.Sprintf("%v", arg), color))
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ func (cell *eventCell) RemoveListener(listenerID string) int {
|
||||
|
||||
func (cell *eventCell) FireEvent(data EventData) {
|
||||
cell.mtx.RLock()
|
||||
var eventCallbacks []EventCallback
|
||||
eventCallbacks := make([]EventCallback, 0, len(cell.listeners))
|
||||
for _, cb := range cell.listeners {
|
||||
eventCallbacks = append(eventCallbacks, cb)
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
# run the linter
|
||||
# make metalinter_test
|
||||
# make lint
|
||||
|
||||
# setup certs
|
||||
make gen_certs
|
||||
|
||||
Reference in New Issue
Block a user