Skip to content
Snippets Groups Projects
Select Git revision
  • d51fe3b2b598967335ea97d3ec930fe74a906c14
  • without_tipselection default
  • develop protected
  • fix/grafana-local-dashboard
  • wasp
  • fix/dashboard-explorer-freeze
  • master
  • feat/timerqueue
  • test/sync_debug_and_650
  • feat/sync_revamp_inv
  • wip/sync
  • tool/db-recovery
  • portcheck/fix
  • fix/synchronization
  • feat/new-dashboard-analysis
  • feat/refactored-analysis-dashboard
  • feat/new-analysis-dashboard
  • test/demo-prometheus-fpc
  • prometheus_metrics
  • wip/analysis-server
  • merge/fpc-test-value-transfer
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
28 results

errors.go

Blame
  • sync_test.go 463 B
    package metrics
    
    import (
    	"sync"
    	"testing"
    
    	"github.com/iotaledger/goshimmer/packages/metrics"
    	"github.com/iotaledger/hive.go/events"
    	"github.com/stretchr/testify/assert"
    )
    
    func TestSynced(t *testing.T) {
    	var wg sync.WaitGroup
    	metrics.Events().Synced.Attach(events.NewClosure(func(synced bool) {
    		// sync plugin and node not run, so we expect synced to be false
    		assert.Equal(t, false, synced)
    		wg.Done()
    	}))
    
    	wg.Add(1)
    	measureSynced()
    	wg.Wait()
    }