mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm: Remove copy/paste typo with find, xargs and sed like a ninja
This commit is contained in:
parent
49f1a6860e
commit
6ad466842a
9 changed files with 12 additions and 12 deletions
|
|
@ -34,7 +34,7 @@ import (
|
|||
// all nodes have the their Kadmlias healthy.
|
||||
func ExampleSimulation_WaitTillHealthy() {
|
||||
|
||||
log.Error("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
log.Error("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
return
|
||||
|
||||
sim := simulation.New(map[string]simulation.ServiceFunc{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import (
|
|||
|
||||
func TestWaitTillHealthy(t *testing.T) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := New(map[string]ServiceFunc{
|
||||
"bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) {
|
||||
addr := network.NewAddr(ctx.Config.Node())
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ func TestDeliveryFromNodes(t *testing.T) {
|
|||
|
||||
func testDeliveryFromNodes(t *testing.T, nodes, conns, chunkCount int, skipCheck bool) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := simulation.New(map[string]simulation.ServiceFunc{
|
||||
"streamer": func(ctx *adapters.ServiceContext, bucket *sync.Map) (s node.Service, cleanup func(), err error) {
|
||||
node := ctx.Config.Node()
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ func TestIntervalsLiveAndHistory(t *testing.T) {
|
|||
|
||||
func testIntervals(t *testing.T, live bool, history *Range, skipCheck bool) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
nodes := 2
|
||||
chunkCount := dataChunkCount
|
||||
externalStreamName := "externalStream"
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ simulation's `action` function.
|
|||
The snapshot should have 'streamer' in its service list.
|
||||
*/
|
||||
func runFileRetrievalTest(nodeCount int) error {
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := simulation.New(retrievalSimServiceMap)
|
||||
defer sim.Close()
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ The snapshot should have 'streamer' in its service list.
|
|||
*/
|
||||
func runRetrievalTest(chunkCount int, nodeCount int) error {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := simulation.New(retrievalSimServiceMap)
|
||||
defer sim.Close()
|
||||
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ func streamerFunc(ctx *adapters.ServiceContext, bucket *sync.Map) (s node.Servic
|
|||
|
||||
func testSyncingViaGlobalSync(t *testing.T, chunkCount int, nodeCount int) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := simulation.New(simServiceMap)
|
||||
defer sim.Close()
|
||||
|
||||
|
|
@ -332,7 +332,7 @@ kademlia network. The snapshot should have 'streamer' in its service list.
|
|||
*/
|
||||
func testSyncingViaDirectSubscribe(t *testing.T, chunkCount int, nodeCount int) error {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := simulation.New(map[string]simulation.ServiceFunc{
|
||||
"streamer": func(ctx *adapters.ServiceContext, bucket *sync.Map) (s node.Service, cleanup func(), err error) {
|
||||
n := ctx.Config.Node()
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ func createMockStore(globalStore mock.GlobalStorer, id enode.ID, addr *network.B
|
|||
|
||||
func testSyncBetweenNodes(t *testing.T, nodes, conns, chunkCount int, skipCheck bool, po uint8) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
sim := simulation.New(map[string]simulation.ServiceFunc{
|
||||
"streamer": func(ctx *adapters.ServiceContext, bucket *sync.Map) (s node.Service, cleanup func(), err error) {
|
||||
var store storage.ChunkStore
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ func watchSim(sim *simulation.Simulation) (context.Context, context.CancelFunc)
|
|||
//This test requests bogus hashes into the network
|
||||
func TestNonExistingHashesWithServer(t *testing.T) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
nodeCount, _, sim := setupSim(retrievalSimServiceMap)
|
||||
defer sim.Close()
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ func sendSimTerminatedEvent(sim *simulation.Simulation) {
|
|||
//can visualize messages like SendOfferedMsg, WantedHashesMsg, DeliveryMsg
|
||||
func TestSnapshotSyncWithServer(t *testing.T) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
nodeCount, chunkCount, sim := setupSim(simServiceMap)
|
||||
defer sim.Close()
|
||||
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ type testSwarmNetworkOptions struct {
|
|||
// - Checking if a file is retrievable from all nodes.
|
||||
func testSwarmNetwork(t *testing.T, o *testSwarmNetworkOptions, steps ...testSwarmNetworkStep) {
|
||||
|
||||
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
|
||||
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
|
||||
if o == nil {
|
||||
o = new(testSwarmNetworkOptions)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue