Skip to content

Commit

Permalink
removing obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmilkiewicz committed Nov 20, 2023
1 parent cf1d909 commit 9f7e876
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.exacaster.lighter.application.sessions

import com.exacaster.lighter.application.ApplicationState
import com.exacaster.lighter.application.sessions.exceptions.SessionAlreadyExistsException
import com.exacaster.lighter.application.sessions.processors.StatementHandler
import com.exacaster.lighter.backend.Backend
import com.exacaster.lighter.storage.ApplicationStorage
Expand All @@ -11,7 +10,6 @@ import com.exacaster.lighter.test.InMemoryStorage
import spock.lang.Specification
import spock.lang.Subject

import static com.exacaster.lighter.test.Factories.newApplication
import static com.exacaster.lighter.test.Factories.sessionParams

class SessionServiceTest extends Specification {
Expand Down Expand Up @@ -70,17 +68,4 @@ class SessionServiceTest extends Specification {
session.isEmpty()
}

def "re-insert session"() {
given:
def existingSession = storage.saveApplication(newApplication())
def sessionParameters = sessionParams()

when: "creating session with conflicting id"
def created = service.createSession(existingSession.id, sessionParameters)

then: "throws exception"
def exc = thrown(SessionAlreadyExistsException)
exc.sessionId == existingSession.id
}

}

0 comments on commit 9f7e876

Please sign in to comment.