You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: endpoint_test.go
    path of file: ./repos/storj/storagenode/gracefulexit
    
    the code of the file until where you have to start completion: // Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.

package gracefulexit_test

import (
	"testing"
	"time"

	"github.
    
func TestGetNonExitingSatellites(t *testing.T) {
	testplanet.Run(t, testplanet.Config{
		SatelliteCount: 3, StorageNodeCount: 1, UplinkCount: 1,
	}, func(t *testing.T, ctx *testcontext.Context, planet *testplanet.Planet) {
		totalSatelliteCount := len(planet.Satellites)
		exitingSatelliteCount := 1
		exitingSatellite := planet.Satellites[0]
		storagenode := planet.StorageNodes[0]

		// set a satellite to already be exiting
		err := storagenode.DB.Satellites().InitiateGracefulExit(ctx, exitingSatellite.ID(), time.Now(), 0)
		require.NoError(t, err)

		nonExitingSatellites, err := storagenode.GracefulExit.Endpoint.GetNonExitingSatellites(ctx, &internalpb.GetNonExitingSatellitesRequest{})
		require.NoError(t, err)
		require.Len(t, nonExitingSatellites.GetSatellites(), totalSatelliteCount-exitingSatelliteCount)

		for _, satellite := range nonExitingSatellites.GetSatellites() {
			require.NotEqual(t, exitingSatellite.ID(), satellite.NodeId)
		}
	})
}