func AssertNFCntDown(fCnt uint32) Assertion {
	return func(assert *require.Assertions, ts *IntegrationTestSuite) {
		sess, err := storage.GetDeviceSession(context.Background(), ts.Device.DevEUI)
		assert.NoError(err)
		assert.Equal(fCnt, sess.NFCntDown)
	}
}
AssertNFCntDown asserts the NFCntDown.
package testsuite
import (
	"context"
	"encoding/binary"
	"encoding/json"
	"time"
	"github.com/gofrs/uuid"
	"github.com/golang/protobuf/proto"
	"github.com/stretchr/testify/require"
	"github.com/brocaar/chirpstack-api/go/v3/as"
	"github.com/brocaar/chirpstack-api/go/v3/gw"
	"github.com/brocaar/chirpstack-api/go/v3/nc"
	"github.com/brocaar/chirpstack-network-server/v3/internal/storage"
	"github.com/brocaar/lorawan"
	"github.com/brocaar/lorawan/backend"
)
var lastToken uint32
func AssertFCntUp(fCnt uint32) Assertion {
	return func(assert *require.Assertions, ts *IntegrationTestSuite) {
		sess, err := storage.GetDeviceSession(context.Background(), ts.Device.DevEUI)
		assert.NoError(err)
		assert.Equal(fCnt, sess.FCntUp)
	}
}